Bug 215485
Summary: | Implement transferable streams | ||
---|---|---|---|
Product: | WebKit | Reporter: | Adam Rice <ricea> |
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | jimmy, joan, kyle, pascalschilp, safwen.baroudi, sam.verschueren, tenphi, webkit-bug-importer, youennf |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Adam Rice
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
<rdar://problem/67522801>
Jimmy Wärting
Importance += 1
youenn fablet
*** Bug 262531 has been marked as a duplicate of this bug. ***
Andrey
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
+1. It sucks that I can't use `ReadableStream` between workers, makes my abstraction much worse.