Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a1b79c5541d9549f0c200870202cd8a64af7a301
https://github.com/WebKit/WebKit/commit/a1b79c5541d9549f0c200870202cd8a64af7a301
Author: Youenn Fablet <[email protected]>
Date: 2025-10-05 (Sun, 05 Oct 2025)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/streams/piping/abort.any-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/streams/piping/abort.any.serviceworker-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/streams/piping/abort.any.sharedworker-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/streams/piping/abort.any.worker-expected.txt
M Source/WebCore/CMakeLists.txt
M Source/WebCore/DerivedSources-input.xcfilelist
M Source/WebCore/DerivedSources-output.xcfilelist
M Source/WebCore/DerivedSources.make
M Source/WebCore/Modules/streams/ReadableByteStreamController.h
M Source/WebCore/Modules/streams/ReadableStream.cpp
M Source/WebCore/Modules/streams/ReadableStreamDefaultReader.cpp
A Source/WebCore/Modules/streams/StreamPipeOptions.h
A Source/WebCore/Modules/streams/StreamPipeOptions.idl
A Source/WebCore/Modules/streams/StreamPipeToUtilities.cpp
A Source/WebCore/Modules/streams/StreamPipeToUtilities.h
M Source/WebCore/Sources.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/bindings/js/InternalReadableStream.cpp
Log Message:
-----------
Add pipeTo support for readable byte streams
https://bugs.webkit.org/show_bug.cgi?id=299438#
rdar://problem/161244992
Reviewed by Chris Dumez.
We implement the pipeTo algorithm in C++ using a default reader.
This is the same algorithm as for regular streams so it might replace the JS
built-in implementation in a follow-up for regular streams.
The implementation is done via PipeToState which stores the necessary state
values needed for pipeTo.
It notably keeps a reference to the source and destination to propagate the
errors backward and forward.
It also keeps reference to the reader and writer used for pipeTo.
The implementation follows closely the specification so the pipeTo operations
are all done in the thread where live the streams.
Covered by rebased tests.
Canonical link: https://commits.webkit.org/301030@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes