Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 83342a89ef1cddb45c3a3f07213d84db3e611e93
https://github.com/WebKit/WebKit/commit/83342a89ef1cddb45c3a3f07213d84db3e611e93
Author: Youenn Fablet <[email protected]>
Date: 2026-02-03 (Tue, 03 Feb 2026)
Changed paths:
M LayoutTests/streams/transfer-internal-expected.txt
M LayoutTests/streams/transfer-internal.html
M Source/WebCore/Modules/streams/StreamTransferUtilities.cpp
M Source/WebCore/dom/MessagePort.cpp
Log Message:
-----------
Update setupCrossRealmTransformReadable implementation following
ReadableStream.from improvements
rdar://169438536
https://bugs.webkit.org/show_bug.cgi?id=306763
Reviewed by Chris Dumez.
Following on ReadableStream.from implementation, we can now reject the cancel
promise and create ReadableStream with a high water mark of 0.
We update setupCrossRealmTransformReadable and CrossRealmReadableStreamSource
accordingly.
In addition to that, we fix the case of enqueuing several values at once, which
is possible as messages can come in batches.
This requires a fix in MessagePort::dispatchMessages and when pullFinished is
called (synchronously in doPull).
We also start a MessagePort when setMessageHandler is called, which is similar
to what is done when a JS message event listener is set.
We add a test to cover this.
Canonical link: https://commits.webkit.org/306704@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications