Fix cancelPromise in ReadableStreamTee being resolved twice (again)#1118
Merged
domenic merged 2 commits intoMar 31, 2021
Merged
Conversation
Collaborator
Author
|
I think this should be the last one. We now have checks in all places where we resolve cancelPromise, and each of those is covered by at least one test. 😅 |
MattiasBuelens
force-pushed
the
fix-tee-cancel-double-resolve-episode-two
branch
from
March 27, 2021 00:32
ef6234b to
e1c422b
Compare
domenic
pushed a commit
to web-platform-tests/wpt
that referenced
this pull request
Mar 29, 2021
domenic
approved these changes
Mar 29, 2021
domenic
left a comment
Member
There was a problem hiding this comment.
LGTM, and very nice find. It seems like the assertions are pretty worthwhile after all if they lead to discovering real browser bugs. Can you file Firefox and Safari bugs, and roll WPT again?
Collaborator
|
lgtm. You can say Chrome is interested. |
Member
|
This is on my radar. I am going to fix it after the test landed in the mozilla repository. |
MattiasBuelens
force-pushed
the
fix-tee-cancel-double-resolve-episode-two
branch
from
March 30, 2021 22:01
e1c422b to
2bfb5f3
Compare
Collaborator
Author
Collaborator
Author
|
Hmm, Gonna try to rebase on |
MattiasBuelens
force-pushed
the
fix-tee-cancel-double-resolve-episode-two
branch
from
March 30, 2021 22:29
2bfb5f3 to
bfa2036
Compare
MattiasBuelens
force-pushed
the
fix-tee-cancel-double-resolve-episode-two
branch
from
March 30, 2021 23:18
bfa2036 to
9a5bcc7
Compare
moz-v2v-gh
pushed a commit
to mozilla/gecko-dev
that referenced
this pull request
Apr 2, 2021
…'d branches in sequence with delay, a=testonly Automatic update from web-platform-tests Streams: more tee() cancelation tests For whatwg/streams#1118. -- wpt-commits: 1bdb43faa7434d36645ab5c64e754b5caefbc9d2 wpt-pr: 28266
moz-v2v-gh
pushed a commit
to mozilla/gecko-dev
that referenced
this pull request
Apr 2, 2021
…'d branches in sequence with delay, a=testonly Automatic update from web-platform-tests Streams: more tee() cancelation tests For whatwg/streams#1118. -- wpt-commits: 1bdb43faa7434d36645ab5c64e754b5caefbc9d2 wpt-pr: 28266
moz-v2v-gh
pushed a commit
to mozilla/gecko-dev
that referenced
this pull request
Apr 7, 2021
…'d branches in sequence with delay, a=testonly Automatic update from web-platform-tests Streams: more tee() cancelation tests For whatwg/streams#1118. -- wpt-commits: 1bdb43faa7434d36645ab5c64e754b5caefbc9d2 wpt-pr: 28266
moz-v2v-gh
pushed a commit
to mozilla/gecko-dev
that referenced
this pull request
Apr 8, 2021
…'d branches in sequence with delay, a=testonly Automatic update from web-platform-tests Streams: more tee() cancelation tests For whatwg/streams#1118. -- wpt-commits: 1bdb43faa7434d36645ab5c64e754b5caefbc9d2 wpt-pr: 28266
aarongable
pushed a commit
to chromium/chromium
that referenced
this pull request
Apr 1, 2022
This change addresses the issue of resolving an already resolved |cancelPromise| in ReadableStreamTee, by checking if both branches have already been canceled. If that is the case, we will have already resolved |cancelPromise| and don't need to resolve it again. The corresponding specification changes are: - whatwg/streams#1112 - whatwg/streams#1118 Bug: 1194266 Change-Id: Iccd6917c1ed98ea5677ba71e050a5f07a5b2b6ed Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3565500 Reviewed-by: Adam Rice <[email protected]> Commit-Queue: Nidhi Jaju <[email protected]> Cr-Commit-Position: refs/heads/main@{#987847}
jwidar
pushed a commit
to jwidar/LatencyZeroGithub
that referenced
this pull request
Sep 16, 2025
…'d branches in sequence with delay, a=testonly Automatic update from web-platform-tests Streams: more tee() cancelation tests For whatwg/streams#1118. -- wpt-commits: 1bdb43faa7434d36645ab5c64e754b5caefbc9d2 wpt-pr: 28266
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I liked #1112 so much that I wanted to fix it twice! 😛
The following test case throws an
AssertionError:This time, the error comes from this line:
(See WHATWG Working Mode: Changes for more details.)
Preview | Diff