Bug 235200 - [Readable Streams API] Reject pending reads when releasing reader
Summary: [Readable Streams API] Reject pending reads when releasing reader
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-01-13 13:46 PST by Mattias Buelens
Modified: 2023-06-19 23:44 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mattias Buelens 2022-01-13 13:46:18 PST
Previously, calling ReadableStreamDefaultReader.releaseLock() or ReadableStreamBYOBReader.releaseLock() while there are pending read() requests would throw a TypeError.
The specification has been changed to allow this case, and to reject such pending read() requests instead.

Standard change: https://github.com/whatwg/streams/pull/1168
Tests: https://github.com/web-platform-tests/wpt/pull/32072
Comment 1 Mattias Buelens 2022-01-13 13:46:57 PST
We just merged this change into the spec, but we accidentally forgot that this also affects default readers. Since default readers are already implemented in multiple engines, our process mandates that we should have first asked whether WebKit is interested in this spec change. Our apologies.

If you have any objections, please let us know in https://github.com/whatwg/streams/pull/1168
Comment 2 Radar WebKit Bug Importer 2022-01-20 13:47:15 PST
<rdar://problem/87847830>
Comment 3 Mattias Buelens 2023-06-19 04:19:02 PDT
This was fixed in https://bugs.webkit.org/show_bug.cgi?id=254511

Feel free to close this bug.