Closed Bug 1706169 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 28586 - [ReadableByteStream] Handle enqueuing when detach

Categories

(Core :: JavaScript Engine, task, P4)

task

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 28586 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/28586
Details from upstream follow.

b'Adam Rice <ricea@chromium.org>' wrote:

[ReadableByteStream] Handle enqueuing when detach

Attempting to call enqueue() on a ReadableByteStreamController after
controller.byobRequest.view.buffer had been detached would crash with a
null pointer dereference.

Make it throw an exception instead.

BUG=1200302

Change-Id: I86b1511ef154a42ca78271618e00d8e1c5e6ae5d
Reviewed-on: https://chromium-review.googlesource.com/2836768
WPT-Export-Revision: ee5b1100689c6da314ff267024f81456ec568c9e

Component: web-platform-tests → JavaScript Engine
Product: Testing → Core

CI Results

Ran 15 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
FAIL : 1

Chrome

CRASH: 1

Safari

OK : 1
FAIL : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/streams/readable-byte-streams/enqueue-with-detached-buffer.window.html: OK [GitHub], SKIP [Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-android-em-7.0-x86_64-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-debug, Gecko-linux1804-64-opt, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-linux1804-64-tsan-opt, Gecko-windows10-64-debug, Gecko-windows10-64-opt, Gecko-windows10-64-qr-debug, Gecko-windows10-64-qr-opt, Gecko-windows7-32-debug, Gecko-windows7-32-opt] (Chrome: CRASH, Safari: OK)
enqueue after detaching byobRequest.view.buffer should throw: FAIL (Safari: FAIL)

Tests Disabled in Gecko Infrastructure

/streams/readable-byte-streams/enqueue-with-detached-buffer.window.html: OK [GitHub], SKIP [Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-android-em-7.0-x86_64-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-debug, Gecko-linux1804-64-opt, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-linux1804-64-tsan-opt, Gecko-windows10-64-debug, Gecko-windows10-64-opt, Gecko-windows10-64-qr-debug, Gecko-windows10-64-qr-opt, Gecko-windows7-32-debug, Gecko-windows7-32-opt] (Chrome: CRASH, Safari: OK)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e7f4f9231b65 [wpt PR 28586] - [ReadableByteStream] Handle enqueuing when detach, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.