Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4b673b1515cc84f04b5c6c1d1957fb1fe0dee417
https://github.com/WebKit/WebKit/commit/4b673b1515cc84f04b5c6c1d1957fb1fe0dee417
Author: Youenn Fablet <[email protected]>
Date: 2025-12-03 (Wed, 03 Dec 2025)
Changed paths:
A LayoutTests/streams/blob-and-tee-expected.txt
A LayoutTests/streams/blob-and-tee.html
M Source/WebCore/Modules/streams/ReadableByteStreamController.cpp
M Source/WebCore/Modules/streams/ReadableByteStreamController.h
M Source/WebCore/Modules/streams/StreamTeeUtilities.cpp
Log Message:
-----------
ReadableByteStreamController::respondWithNewView is called from the tee
algorithm with an empty queue
rdar://165613840
https://bugs.webkit.org/show_bug.cgi?id=303380
Reviewed by Chris Dumez.
As part of running the close steps for byte tee, we call close on the stream
branch1 and branch2.
Closing might throw an exception in case we have started to write data in an
ongoing byob request.
We need to stop executing the close steps in that case, which will prevent the
ReadableByteStreamController::respondWithNewView call.
We do this after closing both branches of the tee.
We also fix ReadableByteStreamController::shouldCallPull as a fly-by fix.
Test: streams/blob-and-tee.html
Canonical link: https://commits.webkit.org/303821@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications