diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 03:41:35 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 03:41:35 +0000 |
commit | 2d861407bd7e9cc56fba8f2f763fe62dddb4da81 (patch) | |
tree | 32d9a69e31440af23173f321c975471ca10608c0 /testing/web-platform/tests/workers/Worker_cross_origin_security_err.htm | |
parent | Releasing progress-linux version 115.11.0esr-1~progress7.99u1. (diff) | |
download | firefox-esr-2d861407bd7e9cc56fba8f2f763fe62dddb4da81.tar.xz firefox-esr-2d861407bd7e9cc56fba8f2f763fe62dddb4da81.zip |
Merging upstream version 115.12.0esr.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/workers/Worker_cross_origin_security_err.htm')
-rw-r--r-- | testing/web-platform/tests/workers/Worker_cross_origin_security_err.htm | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/testing/web-platform/tests/workers/Worker_cross_origin_security_err.htm b/testing/web-platform/tests/workers/Worker_cross_origin_security_err.htm index 8417adbefd..a3e49df79a 100644 --- a/testing/web-platform/tests/workers/Worker_cross_origin_security_err.htm +++ b/testing/web-platform/tests/workers/Worker_cross_origin_security_err.htm @@ -6,26 +6,16 @@ <div id=log></div> <script> async_test(function(t) { - try { var w = new Worker("ftp://example.org/support/WorkerBasic.js"); w.onerror = t.step_func_done(function(e) { assert_true(e instanceof Event); }); - } catch (e) { - assert_throws_dom("SecurityError", () => {throw e}, "DOMExceptions thrown on cross-origin Worker construction must be SecurityErrors"); - t.done(); - } -}, "Cross-origin classic workers should fail to fetch"); + }, "Cross-origin classic workers should fail to fetch"); async_test(function(t) { - try { var w = new Worker("ftp://example.org/support/WorkerBasic.js", {type: "module"}); w.onerror = t.step_func_done(function(e) { assert_true(e instanceof Event); }); - } catch (e) { - assert_throws_dom("SecurityError", () => {throw e}, "DOMExceptions thrown on cross-origin module Worker construction must be SecurityErrors"); - t.done(); - } }, "Cross-origin module workers should fail to fetch"); </script> |