Skip to content
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

Merged
merged 15 commits into from
Oct 25, 2021

Conversation

nidhijaju
Copy link
Contributor

@nidhijaju nidhijaju commented Oct 18, 2021

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

Copy link
Member

@yutakahirano yutakahirano left a 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?

Copy link
Collaborator

@MattiasBuelens MattiasBuelens left a 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:

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.

@nidhijaju
Copy link
Contributor Author

Closing and reopening to trigger the CI again as I believe the wpt PR should have fixed the check failure.

@nidhijaju nidhijaju closed this Oct 19, 2021
@nidhijaju nidhijaju reopened this Oct 19, 2021
@nidhijaju
Copy link
Contributor Author

I'm running into some test failures related to the WritableStreamDefaultController interface, however I think those can only be fixed by updating https://github.com/web-platform-tests/wpt/blob/master/interfaces/streams.idl. However, IIUC that file will not be generated until the spec is updated, and the spec cannot be updated until the tests pass. What should be done in this case?

@MattiasBuelens
Copy link
Collaborator

You're right. This is quite the chicken or the egg situation! 😅

We could temporarily disable the Web IDL tests by adding idlharness.any.html here:

const excludeGlobs = [
// These tests use ArrayBuffers backed by WebAssembly.Memory objects, which *should* be non-transferable.
// However, our TransferArrayBuffer implementation cannot detect these, and will incorrectly "transfer" them anyway.
'readable-byte-streams/non-transferable-buffers.any.html'
];

Then we can land the spec change, wait for @webref/idl and WPT to pick up the new Web IDL, and finally roll WPT in this repo and re-enable the test.

@domenic Thoughts?

@MattiasBuelens
Copy link
Collaborator

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 ReadableStream.from(asyncIterable) or ReadableStreamBYOBReader.fill(view) can't be fully tested before we land them. 😕

@domenic
Copy link
Member

domenic commented Oct 19, 2021

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.

@nidhijaju
Copy link
Contributor Author

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.

domenic pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 25, 2021
@domenic domenic merged commit 4b6b93c into whatwg:main Oct 25, 2021
@domenic
Copy link
Member

domenic commented Oct 25, 2021

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.

@nidhijaju
Copy link
Contributor Author

Thank you so much, @domenic! :)

@nidhijaju nidhijaju deleted the remove-abortreason branch October 25, 2021 18:03
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Oct 29, 2021
…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
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Oct 29, 2021
…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
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Nov 1, 2021
…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
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Nov 1, 2021
…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
Gabisampaio pushed a commit to Gabisampaio/wpt that referenced this pull request Nov 18, 2021
Gabisampaio pushed a commit to Gabisampaio/wpt that referenced this pull request Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants