Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: df32176fb0e913b4d70a97adeca1e731e194a7a0
https://github.com/WebKit/WebKit/commit/df32176fb0e913b4d70a97adeca1e731e194a7a0
Author: Adrian Taylor <[email protected]>
Date: 2026-10-13 (Tue, 13 Oct 2026)
Changed paths:
A
LayoutTests/http/tests/workers/service/permissions-query-cross-scheme-same-domain-expected.txt
A
LayoutTests/http/tests/workers/service/permissions-query-cross-scheme-same-domain.html
A
LayoutTests/http/tests/workers/service/resources/permissions-query-cross-scheme-same-domain-window.html
A
LayoutTests/http/tests/workers/service/resources/permissions-query-cross-scheme-same-domain-worker.js
M LayoutTests/platform/wk2/TestExpectations
M Source/WebKit/UIProcess/WebProcessProxy.cpp
M Source/WebKit/UIProcess/WebProcessProxy.h
Log Message:
-----------
REGRESSION (322953@main): Service worker processes flakily killed when
querying permissions
https://bugs.webkit.org/show_bug.cgi?id=327119
Reviewed by Zak Ridouh.
The network process assigns remote workers to processes by registrable domain,
regardless of
scheme, so a process created for http://example.com workers also runs
https://example.com
ones without the UI process being asked. The UI process recorded the full Site,
so queries
from those workers failed hasCommittedClientOrigin and the process was
terminated. Record
the registrable domain instead.
This was a bug prior to 322953@main in the niche case that two workers for
different origins
on the same site tried to use navigator.locks. 322953@main made this site vs
domain mismatch
apparent in more code paths.
Test: http/tests/workers/service/permissions-query-cross-scheme-same-domain.html
* Source/WebKit/UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::createForRemoteWorkers):
(WebKit::WebProcessProxy::hasCommittedClientOrigin const):
(WebKit::WebProcessProxy::didBecomeRemoteWorkerHostForSite):
* Source/WebKit/UIProcess/WebProcessProxy.h:
*
LayoutTests/http/tests/workers/service/permissions-query-cross-scheme-same-domain-expected.txt:
Added.
*
LayoutTests/http/tests/workers/service/permissions-query-cross-scheme-same-domain.html:
Added.
*
LayoutTests/http/tests/workers/service/resources/permissions-query-cross-scheme-same-domain-window.html:
Added.
*
LayoutTests/http/tests/workers/service/resources/permissions-query-cross-scheme-same-domain-worker.js:
Added.
(self.onmessage.async event):
* LayoutTests/platform/wk2/TestExpectations:
Canonical link: https://commits.webkit.org/323683@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications