Closed Bug 1940934 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 50018 - Add test for ServiceWorkerContainer.register() from a Worker context.

Categories

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

task

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 50018 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/50018
Details from upstream follow.

Frédéric Wang <fwang@igalia.com> wrote:

Add test for ServiceWorkerContainer.register() from a Worker context.

See https://w3c.github.io/ServiceWorker/#serviceworkercontainer-interface

Calling ServiceWorkerContainer.register() from a Window context is already covered by worker-constructor.html.

This commit covers the case when it's called from a Worker context, more specifically particular dedicated, shared and service workers.

This passes in Firefox with the patch from
https://bugzilla.mozilla.org/show_bug.cgi?id=1940044 and https://bugzilla.mozilla.org/show_bug.cgi?id=1901492.

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

CI Results

Ran 0 Firefox configurations based on mozilla-central

Total 0 tests

Blocks: 1940044
Blocks: 1939805
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5e3a56554bbf [wpt PR 50018] - Add test for ServiceWorkerContainer.register() from a Worker context., a=testonly https://hg.mozilla.org/integration/autoland/rev/eedf8f8580d0 [wpt PR 50018] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.