WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
215485
Implement transferable streams
https://bugs.webkit.org/show_bug.cgi?id=215485
Summary
Implement transferable streams
Adam Rice
Reported
2020-08-13 19:07:02 PDT
Transferable streams permit streams to be transferred to a worker or other realm using postMessage(), where they can be used just like the original stream. Example: const rs = new ReadableStream(); window.postMessage(rs, '*', [rs]); See the explainer
https://github.com/whatwg/streams/blob/master/transferable-streams-explainer.md
for more motivation. See the spec change at
https://github.com/whatwg/streams/pull/1053
and the web platform tests at
https://github.com/web-platform-tests/wpt/pull/24546
.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-08-20 19:07:16 PDT
<
rdar://problem/67522801
>
Jimmy Wärting
Comment 2
2023-01-13 13:29:30 PST
Importance += 1
youenn fablet
Comment 3
2023-10-03 12:25:41 PDT
***
Bug 262531
has been marked as a duplicate of this bug. ***
Andrey
Comment 4
2024-03-15 09:20:47 PDT
I accidentally found out that it only happens if you use the following header: Cross-Origin-Embedder-Policy `credentialless` instead of `require-corp`. Other engines are tolerant of this difference. Is it on purpose?
kyle
Comment 5
2024-12-22 23:09:26 PST
+1. It sucks that I can't use `ReadableStream` between workers, makes my abstraction much worse.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug