Bug 1706169 [wpt PR 28586] - [ReadableByteStream] Handle enqueuing when detach, a...
commit219b96d070ddf2f51e9baefb481bf96e6e9be12e
authorAdam Rice <ricea@chromium.org>
Sat, 24 Apr 2021 09:10:25 +0000 (24 09:10 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sat, 24 Apr 2021 15:47:24 +0000 (24 15:47 +0000)
tree4dcaf9b2f9b6249ee3c58fadfa32c76e5ce25a12
parent8ecfb13e14d60bf6e516d13cf6410ae5e009e015
Bug 1706169 [wpt PR 28586] - [ReadableByteStream] Handle enqueuing when detach, a=testonly

Automatic update from web-platform-tests
[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/c/chromium/src/+/2836768
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#874225}

--

wpt-commits: 5233fe69580d5d5d10e46869958093ea771a743f
wpt-pr: 28586
testing/web-platform/tests/streams/readable-byte-streams/enqueue-with-detached-buffer.window.js [new file with mode: 0644]