Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 38a02eb7dd7533ac68da49b7356ff869322eec10
https://github.com/WebKit/WebKit/commit/38a02eb7dd7533ac68da49b7356ff869322eec10
Author: Youenn Fablet <[email protected]>
Date: 2026-02-04 (Wed, 04 Feb 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/messagechannel.any-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/messagechannel.any.serviceworker-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/messagechannel.any.sharedworker-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/messagechannel.any.worker-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/window-postmessage.window-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/html/webappapis/structured-clone/structured-clone.any-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/html/webappapis/structured-clone/structured-clone.any.worker-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/streams/transferable/readable-stream-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/streams/transferable/reason-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/streams/transferable/service-worker.https-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/streams/transferable/shared-worker-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/streams/transferable/transfer-with-messageport.window-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/streams/transferable/window-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/streams/transferable/worker-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/workers/semantics/structured-clone/dedicated-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/workers/semantics/structured-clone/shared-expected.txt
M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
M Source/WebCore/Modules/streams/ReadableStream.cpp
M Source/WebCore/Modules/streams/ReadableStream.h
M Source/WebCore/Modules/webaudio/AudioWorkletGlobalScope.cpp
M Source/WebCore/bindings/js/SerializedScriptValue.cpp
M Source/WebCore/bindings/js/SerializedScriptValue.h
M Source/WebCore/dom/MessagePort.h
M Source/WebCore/page/WindowOrWorkerGlobalScope.cpp
M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in
Log Message:
-----------
Add support for transferable readable streams
rdar://169179559
https://bugs.webkit.org/show_bug.cgi?id=306526
Reviewed by Chris Dumez.
We add a runtime flag to control whether readable streams can be transfered.
We implement https://streams.spec.whatwg.org/#rs-transfer based on the newly
added infrastructure.
For each readable stream, a port is added to the list of transferred ports.
To make sure these ports are not exposed through MessageEvent.ports, we store
in SerializedScriptValue the number of ports to expose.
And we resize the list of ports after deserialization.
Canonical link: https://commits.webkit.org/306763@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications