gecko-dev/testing/web-platform/tests/websockets
Adam Rice 70092d48fe Bug 1560899 [wpt PR 17380] - WebSocket: stop removing an iframe in onerror from crashing, a=testonly
Automatic update from web-platform-tests
WebSocket: stop removing an iframe in onerror from crashing

There was an issue that if the iframe owning a WebSocket was
synchronously removed in the onerror handler then it would crash the
render process. This was caused by unconditionally calling Close()
without checking the current state.

Fix it.

Also add a web platform test.

Bug: 974667
Change-Id: Iaeb8f96cf600a2c052f06b5b59f4444b02615e83
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1663681
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#670061}

--
Set a long timeout

--

wpt-commits: 433e1f06259a79c6cb8bf695bc03ffdfdfe4e7e7, 28ad65497bccb301707e341a9d36f9d144e2793e
wpt-pr: 17380
2019-07-24 13:30:32 +01:00
..
binary Bug 1507768 [wpt PR 14088] - Remove timout in async_test for websockets tests, a=testonly 2018-11-26 18:36:18 +00:00
closing-handshake
constructor Bug 1532639 [wpt PR 15630] - Add <meta name=timeout content=long> to WPT in SlowTests, a=testonly 2019-04-24 11:19:30 +01:00
cookies Bug 1507768 [wpt PR 14088] - Remove timout in async_test for websockets tests, a=testonly 2018-11-26 18:36:18 +00:00
handlers
interfaces Bug 1532639 [wpt PR 15630] - Add <meta name=timeout content=long> to WPT in SlowTests, a=testonly 2019-04-24 11:19:30 +01:00
keeping-connection-open Bug 1507768 [wpt PR 14088] - Remove timout in async_test for websockets tests, a=testonly 2018-11-26 18:36:18 +00:00
multi-globals
opening-handshake Bug 1532639 [wpt PR 15630] - Add <meta name=timeout content=long> to WPT in SlowTests, a=testonly 2019-04-24 11:19:30 +01:00
security
unload-a-document Bug 1507768 [wpt PR 14088] - Remove timout in async_test for websockets tests, a=testonly 2018-11-26 18:36:18 +00:00
basic-auth.any.js
binaryType-wrong-value.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
bufferedAmount-unchanged-by-sync-xhr.any.js
Close-1000-reason.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Close-1000.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
close-invalid.any.js
Close-Reason-124Bytes.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Close-reason-unpaired-surrogates.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Close-undefined.any.js
constants.js
constructor.any.js
Create-asciiSep-protocol-string.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Create-blocked-port.any.js
Create-invalid-urls.any.js
Create-non-absolute-url.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Create-nonAscii-protocol-string.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Create-on-worker-shutdown.any.js
Create-protocol-with-space.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Create-protocols-repeated-case-insensitive.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Create-protocols-repeated.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Create-Secure-extensions-empty.any.js Bug 1532639 [wpt PR 15630] - Add <meta name=timeout content=long> to WPT in SlowTests, a=testonly 2019-04-24 11:19:30 +01:00
Create-Secure-url-with-space.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Create-Secure-valid-url-array-protocols.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Create-Secure-valid-url-binaryType-blob.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Create-Secure-valid-url-protocol-setCorrectly.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Create-Secure-valid-url-protocol-string.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Create-Secure-valid-url.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Create-Secure-verify-url-set-non-default-port.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Create-valid-url-array-protocols.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Create-valid-url-protocol-empty.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Create-valid-url-protocol.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Create-valid-url.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Create-verify-url-set-non-default-port.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Create-wrong-scheme.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
eventhandlers.any.js
extended-payload-length.html Bug 1507768 [wpt PR 14088] - Remove timout in async_test for websockets tests, a=testonly 2018-11-26 18:36:18 +00:00
META.yml
README.md
referrer.any.js
remove-own-iframe-during-onerror.window.js Bug 1560899 [wpt PR 17380] - WebSocket: stop removing an iframe in onerror from crashing, a=testonly 2019-07-24 13:30:32 +01:00
Secure-Close-1000-reason.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Close-1000-verify-code.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Close-1000.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Close-1005-verify-code.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Close-1005.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Close-2999-reason.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Close-3000-reason.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Close-3000-verify-code.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Close-4999-reason.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Close-onlyReason.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Close-readyState-Closed.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Close-readyState-Closing.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Close-Reason-124Bytes.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Close-Reason-Unpaired-surrogates.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Close-server-initiated-close.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Close-undefined.any.js
Secure-Send-65K-data.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Send-binary-65K-arraybuffer.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Send-binary-arraybuffer.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Send-binary-arraybufferview-float32.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Send-binary-arraybufferview-float64.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Send-binary-arraybufferview-int32.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Send-binary-arraybufferview-uint8-offset-length.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Send-binary-arraybufferview-uint8-offset.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Send-binary-arraybufferview-uint16-offset-length.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Send-binary-arraybufferview-uint32-offset.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Send-binary-blob.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Send-data.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Send-null.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Send-paired-surrogates.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Send-unicode-data.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Secure-Send-unpaired-surrogates.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Send-0byte-data.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Send-65K-data.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Send-before-open.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Send-binary-65K-arraybuffer.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Send-binary-arraybuffer.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Send-binary-arraybufferview-int8.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Send-binary-arraybufferview-int16-offset.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Send-binary-blob.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Send-data.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Send-data.worker.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Send-null.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Send-paired-surrogates.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Send-unicode-data.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
Send-Unpaired-Surrogates.any.js Bug 1498467 [wpt PR 13478] - Remove the "W3C WebSocket API" prefix from websockets/ tests, a=testonly 2018-11-14 13:37:51 +00:00
websocket.sub.js

These are the WebSocket tests for the Web sockets chapter of the HTML Standard.