-
Notifications
You must be signed in to change notification settings - Fork 161
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
Remove abortReason property from WritableStream spec #1177
Conversation
Merge from original repo
Merge from Original Repo
Update forked repo
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.
LGTM.
This affects some WPTs. @domenic do you want to update the WPTs too? Or is it OK to wait for the DOM side change?
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.
Could you update the reference implementation too? (Don't forget the Web IDL! 😉)
Some other things to look at:
- We have an explainer about
controller.signal
in this repo. Maybe we should update it to remove.abortReason
, or at least mention what happened to it? - We've opened a bunch of implementation bugs for Define WritableStreamDefaultController.signal #1132. Once this PR lands, we should probably update those bugs to let implementers know that the spec has changed.
This affects some WPTs.
@domenic
do you want to update the WPTs too? Or is it OK to wait for the DOM side change?
Yes, I'd say we remove the asserts about controller.abortReason
from the WPTs.
Closing and reopening to trigger the CI again as I believe the wpt PR should have fixed the check failure. |
I'm running into some test failures related to the |
You're right. This is quite the chicken or the egg situation! 😅 We could temporarily disable the Web IDL tests by adding streams/reference-implementation/run-web-platform-tests.js Lines 35 to 39 in ea03a24
Then we can land the spec change, wait for @domenic Thoughts? |
This is quite scary though. Any spec change that affects the Web IDL won't get tested against the reference implementation until WPT has updated their Web IDL. So proposed additions like |
Oh, this is frustrating! Strange that we haven't run into it before. I think the best thing to do is to manually update https://github.com/web-platform-tests/wpt/blob/master/interfaces/streams.idl (even though it says "generated content do not edit") as part of WPT updates. We should submit and merge a second PR there. Then we can roll the WPT here and do everything as normal. Later, the bot will come along and overwrite our changes, but it should be a no-op since we're just making the changes ahead of the bot. I will double-check with WPT infra folks that this sounds OK, but let's assume it's the way to go if you don't hear back from me soon. |
Thank you @domenic! I'll make the relevant WPT PR/changes on Monday. Please let me know by then if you think we should wait more. |
See whatwg/streams#1177, and especially whatwg/streams#1177 (comment) as to why this is not a bot-generated commit.
I updated the https://bugzilla.mozilla.org/show_bug.cgi?id=1714341 and https://bugs.webkit.org/show_bug.cgi?id=226575 to let them know about the change. |
Thank you so much, @domenic! :) |
…troller.abortReason asserts in tests, a=testonly Automatic update from web-platform-tests Streams: remove abortReason asserts in tests Follows whatwg/streams#1177. -- wpt-commits: a43ea460b71db5a4692cbcd896d0f9ad844bc60c wpt-pr: 31293
…faultController interface, a=testonly Automatic update from web-platform-tests Remove abortReason from WritableStreamDefaultController interface See whatwg/streams#1177, and especially whatwg/streams#1177 (comment) as to why this is not a bot-generated commit. -- wpt-commits: 96ca25f0f7526282c0d47e6bf6a7edd439da1968 wpt-pr: 31367
…troller.abortReason asserts in tests, a=testonly Automatic update from web-platform-tests Streams: remove abortReason asserts in tests Follows whatwg/streams#1177. -- wpt-commits: a43ea460b71db5a4692cbcd896d0f9ad844bc60c wpt-pr: 31293
…faultController interface, a=testonly Automatic update from web-platform-tests Remove abortReason from WritableStreamDefaultController interface See whatwg/streams#1177, and especially whatwg/streams#1177 (comment) as to why this is not a bot-generated commit. -- wpt-commits: 96ca25f0f7526282c0d47e6bf6a7edd439da1968 wpt-pr: 31367
See whatwg/streams#1177, and especially whatwg/streams#1177 (comment) as to why this is not a bot-generated commit.
Based on #1165, this change removes the abortReason property from the WritableStream spec, as we are no longer implementing it, and will rather use the reason from the AbortSignal when that is added in the DOM spec.
@yutakahirano Does this look okay?
Preview | Diff