gecko-dev/testing/web-platform/tests/mixed-content
Katie Dillon e3cbffb6b3 Bug 1501139 [wpt PR 13666] - Updating tests for Window onerror is not triggered bug fix., a=testonly
Automatic update from web-platform-testsUpdating tests for Window onerror is not triggered bug fix.

Chromium starts propagating errors from worker's onerror to window's onerror
after https://chromium-review.googlesource.com/c/chromium/src/+/1287208,
resulting in test failures for mixed-content/module-data-worker-import
tests that do not account for the thrown exception being sent to the window.

This CL adds preventDefault() to the worker.onerror() to handle the case of
uncaught exceptions.

Strictly speaking, this is not necessary according to the current spec, as
"worker's error event" fired at Step 12.1 of #run-a-worker
https://html.spec.whatwg.org/multipage/workers.html#run-a-worker
does not cause "report the error" and thus window's onerror.
But whether window.onerror is fired or not is not what the mixed-content tests
aim to test.

Change-Id: I571aaa85d90b5f933b6212691dcc783579b294be
Reviewed-on: https://chromium-review.googlesource.com/c/1294535
Commit-Queue: Katie Dillon <kdillon@chromium.org>
Reviewed-by: Hiroshige Hayashizaki <hiroshige@chromium.org>
Cr-Commit-Position: refs/heads/master@{#602207}

--

wpt-commits: 7da2537be5ac9af69065b478cc30b1c1f410d024
wpt-pr: 13666
2018-11-10 09:02:12 +00:00
..
audio-tag
beacon-request Bug 1445184 [wpt PR 9992] - [Beacon API] Port beacon-cross-origin.https.html to wpt, a=testonly 2018-04-15 08:32:04 +01:00
classic-data-worker-fetch Bug 1490220 [wpt PR 12943] - Add more WPT tests for mixed-content check in workers/worklets (2/2), a=testonly 2018-09-13 02:57:58 +00:00
fetch-request
generic Bug 1501139 [wpt PR 13666] - Updating tests for Window onerror is not triggered bug fix., a=testonly 2018-11-10 09:02:12 +00:00
img-tag
link-css-tag
link-prefetch-tag
module-data-worker-import Bug 1490220 [wpt PR 12943] - Add more WPT tests for mixed-content check in workers/worklets (2/2), a=testonly 2018-09-13 02:57:58 +00:00
module-worker-top-level Bug 1490220 [wpt PR 12943] - Add more WPT tests for mixed-content check in workers/worklets (2/2), a=testonly 2018-09-13 02:57:58 +00:00
object-tag
picture-tag
script-tag
video-tag
websocket-request
worker-request
worklet-animation-data-import Bug 1490220 [wpt PR 12943] - Add more WPT tests for mixed-content check in workers/worklets (2/2), a=testonly 2018-09-13 02:57:58 +00:00
worklet-animation-top-level Bug 1490220 [wpt PR 12943] - Add more WPT tests for mixed-content check in workers/worklets (2/2), a=testonly 2018-09-13 02:57:58 +00:00
worklet-audio-data-import Bug 1490220 [wpt PR 12943] - Add more WPT tests for mixed-content check in workers/worklets (2/2), a=testonly 2018-09-13 02:57:58 +00:00
worklet-audio-top-level Bug 1490220 [wpt PR 12943] - Add more WPT tests for mixed-content check in workers/worklets (2/2), a=testonly 2018-09-13 02:57:58 +00:00
worklet-layout-data-import Bug 1490220 [wpt PR 12943] - Add more WPT tests for mixed-content check in workers/worklets (2/2), a=testonly 2018-09-13 02:57:58 +00:00
worklet-layout-top-level Bug 1490220 [wpt PR 12943] - Add more WPT tests for mixed-content check in workers/worklets (2/2), a=testonly 2018-09-13 02:57:58 +00:00
worklet-paint-data-import Bug 1490220 [wpt PR 12943] - Add more WPT tests for mixed-content check in workers/worklets (2/2), a=testonly 2018-09-13 02:57:58 +00:00
worklet-paint-top-level Bug 1490220 [wpt PR 12943] - Add more WPT tests for mixed-content check in workers/worklets (2/2), a=testonly 2018-09-13 02:57:58 +00:00
xhr-request
imageset.https.sub.html
META.yml Bug 1476293 [wpt PR 12024] - Add spec links to META.yml, a=testonly 2018-07-29 18:49:42 +01:00
spec_json.js Bug 1490220 [wpt PR 12943] - Add more WPT tests for mixed-content check in workers/worklets (2/2), a=testonly 2018-09-13 02:57:58 +00:00
spec.src.json Bug 1490220 [wpt PR 12943] - Add more WPT tests for mixed-content check in workers/worklets (2/2), a=testonly 2018-09-13 02:57:58 +00:00