Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2b7c1daae5fef81defd4b418c9e37669d7cfa88b
https://github.com/WebKit/WebKit/commit/2b7c1daae5fef81defd4b418c9e37669d7cfa88b
Author: Youenn Fablet <[email protected]>
Date: 2026-02-20 (Fri, 20 Feb 2026)
Changed paths:
A LayoutTests/http/wpt/fetch/response-put-expected.txt
A LayoutTests/http/wpt/fetch/response-put.html
M Source/WebCore/Modules/streams/ReadableStreamToSharedBufferSink.cpp
M Source/WebCore/Modules/streams/ReadableStreamToSharedBufferSink.h
Log Message:
-----------
Prevent recursions in ReadableStreamToSharedBufferSink::enqueue
rdar://170649636
https://bugs.webkit.org/show_bug.cgi?id=308286
Reviewed by Chris Dumez.
Before we transitioned from ReadableStream to ReadableByteStream, the chunk
steps were done within a microtask.
This prevented recursion in case of many chunks already enqueued in the stream.
When running the chunk steps for ReadableStreamToSharedBufferSink, we
immediately call the callback to process the data.
But instead of reading the next chunk synchronously, we do this in the next
microtask.
Test: http/wpt/fetch/response-put.html
Canonical link: https://commits.webkit.org/307911@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications