New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always resolve tee's cancel promise after stream closes or errors #1039
Conversation
051e238
to
27022a3
Compare
Keeping this as a draft for now. I think that a similar issue could occur when the original stream errors while one branch has started cancelling. I suspect that would also keep the cancel promise pending indefinitely, but I first need to write a test to prove it. |
89d031b
to
8dc6995
Compare
8dc6995
to
4dbc3cb
Compare
4dbc3cb
to
763e276
Compare
79a0dd5
to
32b4f9f
Compare
I think this is ready for review. There were some other issues with WPT which also affected this PR, hence the influx of pull requests. Now that those are fixed, this PR is finally green again. 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. @ricea, I assume Chromium is interested in this fix?
@jorendorff and @youennf, does this sound good to you? I know traditionally we haven't been asking for multi-implementer support for every bugfix to streams, but I think it'd be good for us to get in that habit.
Yes, speaking for Google Chrome, we want this fix. |
@MattiasBuelens would you mind rebasing? @youennf confirmed he's good with this fix, so we can merge once that's done. |
32b4f9f
to
1f9d289
Compare
1f9d289
to
5c7ec3a
Compare
I filed bugs for WebKit and Gecko, and updated the OP with links to them. For Chromium we'll automatically get a bug filed by the web platform tests importer, and I know @ricea has been pretty good about triaging those. |
…tream closes or errors, a=testonly Automatic update from web-platform-tests Test canceling one branch when stream closes or errors Follows whatwg/streams#1039. -- wpt-commits: e5e5e7a10cbb968b31c51ad87ce8a3da62bb1b34 wpt-pr: 24124
…tream closes or errors, a=testonly Automatic update from web-platform-tests Test canceling one branch when stream closes or errors Follows whatwg/streams#1039. -- wpt-commits: e5e5e7a10cbb968b31c51ad87ce8a3da62bb1b34 wpt-pr: 24124
…tream closes or errors, a=testonly Automatic update from web-platform-tests Test canceling one branch when stream closes or errors Follows whatwg/streams#1039. -- wpt-commits: e5e5e7a10cbb968b31c51ad87ce8a3da62bb1b34 wpt-pr: 24124 UltraBlame original commit: d835b5e68f7177a62bd9782ba6447e786ddac6c9
…tream closes or errors, a=testonly Automatic update from web-platform-tests Test canceling one branch when stream closes or errors Follows whatwg/streams#1039. -- wpt-commits: e5e5e7a10cbb968b31c51ad87ce8a3da62bb1b34 wpt-pr: 24124 UltraBlame original commit: f12c531e015c22fc03483b942fdf6e15e9ad686f
…tream closes or errors, a=testonly Automatic update from web-platform-tests Test canceling one branch when stream closes or errors Follows whatwg/streams#1039. -- wpt-commits: e5e5e7a10cbb968b31c51ad87ce8a3da62bb1b34 wpt-pr: 24124 UltraBlame original commit: d835b5e68f7177a62bd9782ba6447e786ddac6c9
…tream closes or errors, a=testonly Automatic update from web-platform-tests Test canceling one branch when stream closes or errors Follows whatwg/streams#1039. -- wpt-commits: e5e5e7a10cbb968b31c51ad87ce8a3da62bb1b34 wpt-pr: 24124 UltraBlame original commit: f12c531e015c22fc03483b942fdf6e15e9ad686f
…tream closes or errors, a=testonly Automatic update from web-platform-tests Test canceling one branch when stream closes or errors Follows whatwg/streams#1039. -- wpt-commits: e5e5e7a10cbb968b31c51ad87ce8a3da62bb1b34 wpt-pr: 24124 UltraBlame original commit: d835b5e68f7177a62bd9782ba6447e786ddac6c9
…tream closes or errors, a=testonly Automatic update from web-platform-tests Test canceling one branch when stream closes or errors Follows whatwg/streams#1039. -- wpt-commits: e5e5e7a10cbb968b31c51ad87ce8a3da62bb1b34 wpt-pr: 24124 UltraBlame original commit: f12c531e015c22fc03483b942fdf6e15e9ad686f
Always resolve tee's cancel promise after stream closes or errors. Applies whatwg/streams#1039 to our implementation. BUG=1114014 Change-Id: Ic6d665bd928553ea3a292fe8221f0812d1c613e7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2358929 Reviewed-by: Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Adam Rice <ricea@chromium.org> Cr-Commit-Position: refs/heads/master@{#798520}
…tream closes or errors, a=testonly Automatic update from web-platform-tests Test canceling one branch when stream closes or errors Follows whatwg/streams#1039. -- wpt-commits: e5e5e7a10cbb968b31c51ad87ce8a3da62bb1b34 wpt-pr: 24124
…tream closes or errors, a=testonly Automatic update from web-platform-tests Test canceling one branch when stream closes or errors Follows whatwg/streams#1039. -- wpt-commits: e5e5e7a10cbb968b31c51ad87ce8a3da62bb1b34 wpt-pr: 24124
Always resolve tee's cancel promise after stream closes or errors. Applies whatwg/streams#1039 to our implementation. BUG=1114014 Change-Id: Ic6d665bd928553ea3a292fe8221f0812d1c613e7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2358929 Reviewed-by: Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Adam Rice <ricea@chromium.org> Cr-Commit-Position: refs/heads/master@{#798520} GitOrigin-RevId: 1508bc0bf1fef93eac20c265e5d0c8f0992f14cd
Fixes #1038.
(See WHATWG Working Mode: Changes for more details.)
Preview | Diff