Bug 1560899 [wpt PR 17380] - WebSocket: stop removing an iframe in onerror from crash...
commit70092d48fe7ecbf1dbd837a96ca9896fb7ba0f7c
authorAdam Rice <ricea@chromium.org>
Fri, 19 Jul 2019 12:37:37 +0000 (19 12:37 +0000)
committerJames Graham <james@hoppipolla.co.uk>
Wed, 24 Jul 2019 12:30:32 +0000 (24 13:30 +0100)
tree3e96ce46a6b0b54de7ea546a40d38882041e31be
parent631ce37940402be8264524db2ca394703e44b3e0
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: 433e1f06259a79c6cb8bf695bc03ffdfdfe4e7e728ad65497bccb301707e341a9d36f9d144e2793e
wpt-pr: 17380
testing/web-platform/tests/websockets/remove-own-iframe-during-onerror.window.js [new file with mode: 0644]