[wpt-sync] Sync PR 50017 - Add test for calling worker constructor from a shared worker.
Categories
(Core :: DOM: Security, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox136 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 2 open bugs, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 50017 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/50017
Details from upstream follow.
Frédéric Wang <fwang@igalia.com> wrote:
Add test for calling worker constructor from a shared worker.
See https://html.spec.whatwg.org/multipage/workers.html#dedicated-workers-and-the-worker-interface
- Calling the Worker constructor from Window is covered by worker-constructor.html
- Calling the Worker constructor from a DedicatedWorker is covered by WorkerGlobalScope-worker-constructor.html
- This patch extends the previous test to also cover the case when the Worker constructor is called from a SharedWorker.
Assignee | ||
Updated•1 month ago
|
Assignee | ||
Comment 1•1 month ago
|
||
Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 6 subtests
Status Summary
Firefox
OK
: 1
PASS
: 4
FAIL
: 2
TIMEOUT
: 1
Chrome
OK
: 1
PASS
: 3
FAIL
: 3
Safari
TIMEOUT
: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /trusted-types/WorkerGlobalScope-worker-constructor.html [wpt.fyi]:
OK
[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview
,Gecko-android-em-7.0-x86_64-qr-debug-geckoview
,Gecko-android-em-7.0-x86_64-qr-opt-geckoview
,Gecko-linux1804-64-qr-debug
,Gecko-linux1804-64-qr-opt
,Gecko-windows11-32-2009-qr-debug
,Gecko-windows11-32-2009-qr-opt
,Gecko-windows11-64-2009-qr-debug
,Gecko-windows11-64-2009-qr-opt
],TIMEOUT
[GitHub
] (Chrome:OK
, Safari:TIMEOUT
)- Creating a Worker from a string should throw (dedicated worker scope):
FAIL
(Chrome:PASS
) - Creating a Worker from a string should throw (shared worker scope):
FAIL
(Chrome:FAIL
)
- Creating a Worker from a string should throw (dedicated worker scope):
Comment 4•1 month ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f81f8bde3424
https://hg.mozilla.org/mozilla-central/rev/2b0916a96e1e
Description
•