Closed Bug 1940901 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 50017 - Add test for calling worker constructor from a shared worker.

Categories

(Core :: DOM: Security, task, P4)

task

Tracking

()

RESOLVED FIXED
136 Branch
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.

https://github.com/w3c/trusted-types/issues/567

Component: web-platform-tests → DOM: Security
Product: Testing → Core

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)
Blocks: 1939805
Blocks: 1901492
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f81f8bde3424 [wpt PR 50017] - Add test for calling worker constructor from a shared worker., a=testonly https://hg.mozilla.org/integration/autoland/rev/2b0916a96e1e [wpt PR 50017] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
Blocks: 1942306
You need to log in before you can comment on or make changes to this bug.