Closed Bug 1507950 Opened 6 years ago Closed 5 years ago

Allow calling ReadableStream controller.error() more than once

Categories

(Core :: JavaScript Engine, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: jorendorff, Assigned: jorendorff)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

The spec has changed since we implemented it. We're too strict now; this causes some test failures in testing/web-platform/tests/streams/readable-streams/bad-underlying-sources*.html.
Summary: Allow calling ReadableStream controller.close() more than once → Allow calling ReadableStream controller.error() more than once
This is probably also causing the failures in testing/web-platform/tests/streams/readable-streams/garbage-collection*.html .
Assignee: nobody → jorendorff
Pushed by jorendorff@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bc83a2fe5c17
Allow calling controller.error() when the stream is not readable. r=arai
Backout by dluca@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7eb42458e2d8
Backed out 5 changesets (bug 1507950, bug 1503012, bug 1507943, bug 1512050, bug 1512008) for spidermonkey and jit failures
Pushed by jorendorff@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a6eb6e3732ae
Allow calling controller.error() when the stream is not readable. r=arai
https://hg.mozilla.org/mozilla-central/rev/a6eb6e3732ae
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Note to MDN writers:

I'm not convinced this desparately needs to be added to the release notes, given that readable streams have only been enabled by default anyway. I think this just needs us to check whether the readable stream controller docs report the .error() behavior accurately.

I've documented this by adding a note to the error() page:
https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultController/error

I didn't think it was worth calling this out specifically in the compat data because it was only enabled by default in Firefox 65 anyway.

Let me know if that's OK. thanks!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: