mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 10:45:42 +00:00
e3cbffb6b3
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 |
||
---|---|---|
.. | ||
audio-tag | ||
beacon-request | ||
classic-data-worker-fetch | ||
fetch-request | ||
generic | ||
img-tag | ||
link-css-tag | ||
link-prefetch-tag | ||
module-data-worker-import | ||
module-worker-top-level | ||
object-tag | ||
picture-tag | ||
script-tag | ||
video-tag | ||
websocket-request | ||
worker-request | ||
worklet-animation-data-import | ||
worklet-animation-top-level | ||
worklet-audio-data-import | ||
worklet-audio-top-level | ||
worklet-layout-data-import | ||
worklet-layout-top-level | ||
worklet-paint-data-import | ||
worklet-paint-top-level | ||
xhr-request | ||
imageset.https.sub.html | ||
META.yml | ||
spec_json.js | ||
spec.src.json |