diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 09:04:05 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 09:04:05 +0000 |
commit | 6391fbb73e25d3f7af15213274c2a3bfe1bc7af5 (patch) | |
tree | d2c6903d55ffdba0655dc473a5ad44c2ecf59df8 /testing/web-platform/tests/workers/constructors/SharedWorker/same-origin.html | |
parent | Releasing progress-linux version 115.11.0esr-1~deb12u1progress7u1. (diff) | |
download | firefox-esr-6391fbb73e25d3f7af15213274c2a3bfe1bc7af5.tar.xz firefox-esr-6391fbb73e25d3f7af15213274c2a3bfe1bc7af5.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/constructors/SharedWorker/same-origin.html')
-rw-r--r-- | testing/web-platform/tests/workers/constructors/SharedWorker/same-origin.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/testing/web-platform/tests/workers/constructors/SharedWorker/same-origin.html b/testing/web-platform/tests/workers/constructors/SharedWorker/same-origin.html index 0bfc503d06..4f1b62a660 100644 --- a/testing/web-platform/tests/workers/constructors/SharedWorker/same-origin.html +++ b/testing/web-platform/tests/workers/constructors/SharedWorker/same-origin.html @@ -10,19 +10,19 @@ setup({allow_uncaught_exception: true}); testSharedWorkerHelper = (t, script) => { - try { - const worker = new SharedWorker(script, ''); - worker.onerror = t.step_func_done(e => { - assert_true(e instanceof Event); - }); - } catch (e) { - assert_throws_dom("SecurityError", () => {throw e}, "DOMExceptions thrown on cross-origin SharedWorker construction must be SecurityErrors"); - t.done(); - } + const worker = new SharedWorker(script, ''); + worker.onerror = t.step_func_done(e => { + assert_true(e instanceof Event); + }); } test(() => { - assert_throws_dom("SecurityError", () => { new SharedWorker('unsupported:', ''); }); + assert_throws_dom("SyntaxError", () => { new SharedWorker('https://test:test', ''); }); +}, "non-parsable URL"); + +async_test(t => { + // Parses fine as a URL, fails to fetch according to Fetch + testSharedWorkerHelper(t, 'unsupported:'); }, "unsupported_scheme"); async_test(t => { |