Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 319a82c014829b97028d6424b760c4f02f8220e7
https://github.com/WebKit/WebKit/commit/319a82c014829b97028d6424b760c4f02f8220e7
Author: Youenn Fablet <[email protected]>
Date: 2025-12-03 (Wed, 03 Dec 2025)
Changed paths:
M LayoutTests/streams/blob-and-tee.html
M Source/WebCore/Modules/fetch/FetchBodyOwner.cpp
M Source/WebCore/Modules/streams/ReadableStream.cpp
M Source/WebCore/Modules/streams/ReadableStream.h
M Source/WebCore/Modules/streams/StreamTeeUtilities.cpp
M Source/WebCore/Modules/webtransport/WebTransport.cpp
M Source/WebCore/fileapi/Blob.cpp
Log Message:
-----------
ReadableStream readers should not be GCed if having pending read requests for
native sources
rdar://165746977
https://bugs.webkit.org/show_bug.cgi?id=303460
Reviewed by Chris Dumez.
We were previously protecting the stream readers of GC for native sources in
case the stream is pulling.
This does not always work with readers for streams teed from a native source.
We have to propagate the signal that the stream has a native source for teed
streams, which we do in byteStreamTee.
We also have to extend the isReachableFromOpaqueRoots to a stream that is in
readable state.
This is fin as we are only protecting readers with pending read requests, which
means that
either pulling will happen in a very near future, or the pending read requests
will be served.
Covered by updated LayoutTests/streams/blob-and-tee.html.
Canonical link: https://commits.webkit.org/303833@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications