fune/testing/web-platform/tests/encoding
Adam Rice 8e51528c99 Bug 1804192 [wpt PR 37336] - Fix DCHECK with Text*coderStream, a=testonly
Automatic update from web-platform-tests
Fix DCHECK with Text*coderStream

When write() or close() was called on a TextEncoderStream or
TextDecoderStream in a detached realm it would cause a DCHECK failure
due to the context being invalid. Check for an invalid context and throw
an exception proactively.

BUG=1395588

Change-Id: Iafab2d90a2a35da01dfd811e4d0501a2971a5db5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4080291
Reviewed-by: Domenic Denicola <domenic@chromium.org>
Commit-Queue: Domenic Denicola <domenic@chromium.org>
Auto-Submit: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1084191}

--

wpt-commits: 0c1b9d1622ae0f27f82d7f7d7a1e9e69d410a3ca
wpt-pr: 37336
2022-12-21 19:34:21 +00:00
..
legacy-mb-japanese
legacy-mb-korean/euc-kr
legacy-mb-schinese
legacy-mb-tchinese/big5
resources
streams
api-basics.any.js
api-invalid-label.any.js
api-replacement-encodings.any.js
api-surrogates-utf8.any.js
big5-encoder.html
bom-handling.html
bom-handling.html.headers
encodeInto.any.js
encodeInto.any.js.headers
eof-shift_jis-ref.html
eof-shift_jis.html
eof-utf-8-one-ref.html
eof-utf-8-one.html
eof-utf-8-three-ref.html
eof-utf-8-three.html
eof-utf-8-two-ref.html
eof-utf-8-two.html
idlharness-shadowrealm.window.js
idlharness.any.js
iso-2022-jp-decoder.any.js
iso-2022-jp-encoder.html
META.yml
remove-only-one-bom.html
replacement-encodings.any.js
sharedarraybuffer.https.html
sharedarraybuffer.https.html.headers
single-byte-decoder.window.js
sniffing.html
textdecoder-arguments.any.js
textdecoder-byte-order-marks.any.js
textdecoder-copy.any.js
textdecoder-copy.any.js.headers
textdecoder-eof.any.js
textdecoder-fatal-single-byte.any.js
textdecoder-fatal-streaming.any.js
textdecoder-fatal.any.js
textdecoder-ignorebom.any.js
textdecoder-labels.any.js
textdecoder-streaming.any.js
textdecoder-streaming.any.js.headers
textdecoder-utf16-surrogates.any.js
textencoder-constructor-non-utf.any.js
textencoder-utf16-surrogates.any.js
unsupported-encodings.any.js
unsupported-labels.window.js
utf-32-from-win1252.html
utf-32.html