-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
structuredClone fails for {Readable,Writable}Stream in Safari #24642
Comments
This is not how BCD encodes this information. BCD documents the transferability of each API under its API table, because |
Perhaps rather than a full green checkmark, this merits some sort of caveat, like a "See implementation notes" asterisk? Do you see how this could be misleading otherwise? |
I can imagine a note like "full support of |
Totally, I think a note like that would be a great help for folks unfamiliar with these exceptions, which are otherwise quite far from the MDN page of the failing function... postMessage failing due to structuredClone failing due a transferrable object failing to have a transfer method... |
What type of issue is this?
Browser bug (a bug with a feature that may impact site compatibility)
What information was incorrect, unhelpful, or incomplete?
The Browser Compatibility shows Safari and Safari iOS fully support structuredClone, but the API fails for ReadableStream or WritableStream.
What browsers does this problem apply to, if applicable?
Safari
What did you expect to see?
A clone of the ReadableStream.
Did you test this? If so, how?
Run the following in the console to test:
Chrome et al will log something like this:
Safari will log this:
Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
No response
Do you have anything more you want to share?
Transferring streams is also broken for
postMessage
: https://bugs.webkit.org/show_bug.cgi?id=215485MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Window/structuredClone
MDN metadata
MDN page report details
api.structuredClone
The text was updated successfully, but these errors were encountered: