Bug 223962 - Streams: fix cancel() promise in ReadableStreamTee being resolved twice
Summary: Streams: fix cancel() promise in ReadableStreamTee being resolved twice
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: 2021-03-30 15:22 PDT by Mattias Buelens
Modified: 2022-11-23 02:50 PST (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 2021-03-30 15:22:02 PDT
The Streams standard has been updated to handle an edge case where ReadableStreamTee() would attempt to resolve the cancel() promise twice. While similar changes in the past have not resulted in user-visible changes (since implementations must already ignore resolving already-resolved promises), this particular case *does* lead to a behavior change (which is covered by new WPT tests).

See https://github.com/whatwg/streams/pull/1118 for the specification change and https://github.com/web-platform-tests/wpt/pull/28266 for the new tests.
Comment 1 Radar WebKit Bug Importer 2021-04-06 15:22:13 PDT
<rdar://problem/76286913>
Comment 2 youenn fablet 2022-11-23 02:50:06 PST
Added test is passing, implementation works as expected.