Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3e7adccfb5ca42efb7c060a4780d718fda936a21
https://github.com/WebKit/WebKit/commit/3e7adccfb5ca42efb7c060a4780d718fda936a21
Author: Youenn Fablet <[email protected]>
Date: 2026-02-02 (Mon, 02 Feb 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/from.any-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/from.any.serviceworker-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/from.any.sharedworker-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/from.any.worker-expected.txt
M Source/WebCore/Modules/fetch/FetchBodySource.cpp
M Source/WebCore/Modules/mediastream/MediaStreamTrackProcessor.cpp
M Source/WebCore/Modules/streams/ReadableStream.cpp
M Source/WebCore/Modules/streams/ReadableStreamSource.cpp
M Source/WebCore/Modules/streams/ReadableStreamSource.h
M Source/WebCore/Modules/streams/ReadableStreamSource.idl
M Source/WebCore/Modules/webtransport/DatagramSource.cpp
M
Source/WebCore/Modules/webtransport/WebTransportBidirectionalStreamSource.cpp
M Source/WebCore/Modules/webtransport/WebTransportReceiveStreamSource.cpp
M Source/WebCore/bindings/js/DOMAsyncIterator.cpp
Log Message:
-----------
Finalise support of ReadableStream.from
rdar://169090451
https://bugs.webkit.org/show_bug.cgi?id=306424
Reviewed by Chris Dumez.
We add support for having the source being cancelled asynchronously by making
it return a promise.
We introduce cancelFinished to notify cancel is finished.
We update existing native sources that implement cancel by making sure they
call cancelFinished.
We add support for cancelling an AsyncIteratorSource, by using
DOMAsyncIterator::callReturn, as per
https://streams.spec.whatwg.org/#readable-stream-from-iterable, cancel
algorithm steps.
Covered by WPT tests.
WPT readable stream from tests are all passing except one, which needs further
study.
Canonical link: https://commits.webkit.org/306628@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications