[wpt-sync] Sync PR 65006 - Fix service worker state race in protocol-handler WPTs
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 65006 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/65006
Details from upstream follow.
David Bienvenu <davidbienvenu@chromium.org> wrote:
Fix service worker state race in protocol-handler WPTs
In external/wpt/html/webappapis/system-state-and-capabilities/
the-navigator-object/resources/handler-tools.js, runTest passes
reg.installing to wait_for_state() after
service_worker_unregister_and_register() resolves. If the service worker
has already transitioned from installing to waiting or active before the
registration promise resolves, reg.installing is null and
wait_for_state() throws an error. Fall back to reg.waiting || reg.active
so wait_for_state() receives a valid ServiceWorker object regardless of
how quickly installation progresses.Bug: 371061343
Change-Id: Iaefcd1c90add026edcbc6f8c5b3889a3a9e0d81a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8772000
Commit-Queue: David Bienvenu \<davidbienvenu@chromium.org>
Reviewed-by: Jonathan Lee \<jonathanjlee@google.com>
Cr-Commit-Position: refs/heads/main@{#1740840}
| Assignee | ||
Updated•12 days ago
|
| Assignee | ||
Comment 1•12 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=122269
| Assignee | ||
Comment 2•11 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 5 tests and 1 subtests
Status Summary
Firefox
ERROR : 5
NOTRUN: 5
Chrome
OK : 5
PASS : 5
Safari
ERROR : 5
NOTRUN: 5
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/webappapis/system-state-and-capabilities/the-navigator-object/protocol-handler-fragment-nosw.https.html [wpt.fyi]:
ERROR(Chrome:OK, Safari:ERROR)- registerProtocolHandler() and a handler with %s in the fragment (does not use a service worker):
NOTRUN(Chrome:PASS, Safari:NOTRUN)
- registerProtocolHandler() and a handler with %s in the fragment (does not use a service worker):
- /html/webappapis/system-state-and-capabilities/the-navigator-object/protocol-handler-fragment.https.html [wpt.fyi]:
ERROR(Chrome:OK, Safari:ERROR)- registerProtocolHandler() and a handler with %s in the fragment:
NOTRUN(Chrome:PASS, Safari:NOTRUN)
- registerProtocolHandler() and a handler with %s in the fragment:
- /html/webappapis/system-state-and-capabilities/the-navigator-object/protocol-handler-path.https.html [wpt.fyi]:
ERROR(Chrome:OK, Safari:ERROR)- registerProtocolHandler() and a handler with %s in the path:
NOTRUN(Chrome:PASS, Safari:NOTRUN)
- registerProtocolHandler() and a handler with %s in the path:
- /html/webappapis/system-state-and-capabilities/the-navigator-object/protocol-handler-query-nosw.https.html [wpt.fyi]:
ERROR(Chrome:OK, Safari:ERROR)- registerProtocolHandler() and a handler with %s in the query (does not use a service worker):
NOTRUN(Chrome:PASS, Safari:NOTRUN)
- registerProtocolHandler() and a handler with %s in the query (does not use a service worker):
- /html/webappapis/system-state-and-capabilities/the-navigator-object/protocol-handler-query.https.html [wpt.fyi]:
ERROR(Chrome:OK, Safari:ERROR)- registerProtocolHandler() and a handler with %s in the query:
NOTRUN(Chrome:PASS, Safari:NOTRUN)
- registerProtocolHandler() and a handler with %s in the query:
Comment 4•9 days ago
|
||
| bugherder | ||
Description
•