Closed Bug 1478278 Opened 8 years ago Closed 8 years ago

[wpt-sync] Sync PR 12178 - Update ReadableStream to match standard

Categories

(Core :: DOM: Core & HTML, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 12178 into mozilla-central (this bug is closed when the sync is complete). PR: https://github.com/web-platform-tests/wpt/pull/12178 Details from upstream follow. Adam Rice <ricea@chromium.org> wrote: > Update ReadableStream to match standard > > Apply standard changes to ReadableStream up to standard version > 51227372cc84846bdcf68312724c4cac6a4b9e58. With this change, Blink's > implementation once again passes all non-byte-stream ReadableStream > tests. > > Update test expectations to match. > > Changes: > > * Use null prototypes for the objects returned by > ReadableStreamDefaultReaderRead when they consumed internally by > pipeTo(), tee() or fetch. This is the fix for standard issue > https://github.com/whatwg/streams/issues/933 "Setting > Object.prototype.then permits interfering with pipeTo() internals". > * In pipeTo() complete all pending writes when readable stream is > errored. > * Change ordering of accessing strategy parameters to match standard. > > Non-user visible changes: > > * Use Object.assign() to be more concise when modifying the binding > object in ReadableStream.js and WritableStream.js. > > WPT changes: > > * Update the expectations in response-stream-with-broken-then.any.js > since interference is no longer possible. > * Add extra tests to response-stream-with-broken-then.any.js for the > arraybuffer -> text case which should have been broken in Chrome but > wasn't, and the arraybuffer -> stream case. > * Fix bugs in streams/piping/then-interception.js which are only > apparent when it passes. In particular, delete Object.prototype.then > even when it is not called. > > BUG=866388 > > Change-Id: I82c8ac2c2b7d71ccbf331388014e8cec847e1b65 > Reviewed-on: https://chromium-review.googlesource.com/1149678 > WPT-Export-Revision: 9dac80f7e129532ff32e23d1fe19b66dd9700fbf
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Component: web-platform-tests → DOM
Product: Testing → Core
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Ran 6 tests and 21 subtests OK : 6 PASS : 3 FAIL : 18 New tests that have failures or other problems: /fetch/api/response/response-stream-with-broken-then.any.html Attempt to inject 8.2 via Object.prototype.then.: FAIL Attempt to inject undefined via Object.prototype.then.: FAIL Attempt to inject value: undefined via Object.prototype.then.: FAIL Attempt to inject {done: false, value: bye} via Object.prototype.then.: FAIL intercepting arraybuffer to body readable stream conversion via Object.prototype.then should not be possible: FAIL /fetch/api/response/response-stream-with-broken-then.any.worker.html Attempt to inject 8.2 via Object.prototype.then.: FAIL Attempt to inject undefined via Object.prototype.then.: FAIL Attempt to inject value: undefined via Object.prototype.then.: FAIL Attempt to inject {done: false, value: bye} via Object.prototype.then.: FAIL intercepting arraybuffer to body readable stream conversion via Object.prototype.then should not be possible: FAIL
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/f4fa68713e28 [wpt PR 12178] - Update ReadableStream to match standard, a=testonly https://hg.mozilla.org/integration/mozilla-inbound/rev/49eacc674968 [wpt PR 12178] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.