From 834e5778a084c4d8fa77ff5482665cc0b27a5c15 Mon Sep 17 00:00:00 2001 From: Bastien Orivel Date: Tue, 11 Jun 2019 20:24:49 +0200 Subject: [PATCH] Prevent the error from triggering a page error in Worker-nested-importScripts-error Fixes #23511 --- tests/wpt/metadata/MANIFEST.json | 2 +- .../workers/Worker-nested-importScripts-error.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/wpt/metadata/MANIFEST.json b/tests/wpt/metadata/MANIFEST.json index e8f9fa35edb..cf75ea4fe84 100644 --- a/tests/wpt/metadata/MANIFEST.json +++ b/tests/wpt/metadata/MANIFEST.json @@ -682244,7 +682244,7 @@ "testharness" ], "workers/Worker-nested-importScripts-error.html": [ - "8863b7523010dd8566d1ed42094e519efc500a65", + "bd96c835df9275e6f191adfe79f47f1df2d7d5bf", "testharness" ], "workers/Worker-replace-event-handler.any.js": [ diff --git a/tests/wpt/web-platform-tests/workers/Worker-nested-importScripts-error.html b/tests/wpt/web-platform-tests/workers/Worker-nested-importScripts-error.html index 8863b752301..bd96c835df9 100644 --- a/tests/wpt/web-platform-tests/workers/Worker-nested-importScripts-error.html +++ b/tests/wpt/web-platform-tests/workers/Worker-nested-importScripts-error.html @@ -12,6 +12,7 @@ promise_test(t => { }).then(e => { assert_equals(e.type, "error"); assert_true(e.filename.indexOf('invalidScript.js') >= 0); + e.preventDefault(); }); }, 'Tests that errors from the import scripts come from the expected file.')