Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 49c4af0a8d5f3b4f68fe029748cef419f3dcc84b
https://github.com/WebKit/WebKit/commit/49c4af0a8d5f3b4f68fe029748cef419f3dcc84b
Author: Ryosuke Niwa <[email protected]>
Date: 2026-06-04 (Thu, 04 Jun 2026)
Changed paths:
A LayoutTests/http/tests/web-locks/resources/shared-worker.js
A LayoutTests/http/tests/web-locks/web-lock-in-blob-url-expected.txt
A LayoutTests/http/tests/web-locks/web-lock-in-blob-url.html
A LayoutTests/http/tests/web-locks/web-lock-in-data-url-expected.txt
A LayoutTests/http/tests/web-locks/web-lock-in-data-url.html
A LayoutTests/http/tests/web-locks/web-lock-in-opaque-srcdoc-expected.txt
A LayoutTests/http/tests/web-locks/web-lock-in-opaque-srcdoc.html
A LayoutTests/http/tests/web-locks/web-lock-in-serviceworker-expected.txt
A
LayoutTests/http/tests/web-locks/web-lock-in-serviceworker-service-worker.js
A LayoutTests/http/tests/web-locks/web-lock-in-serviceworker.html
A LayoutTests/http/tests/web-locks/web-lock-in-sharedworker-expected.txt
A LayoutTests/http/tests/web-locks/web-lock-in-sharedworker.html
A LayoutTests/http/tests/web-locks/web-lock-in-srcdoc-expected.txt
A LayoutTests/http/tests/web-locks/web-lock-in-srcdoc.html
A LayoutTests/ipc/weblock-registry-origin-expected.txt
A LayoutTests/ipc/weblock-registry-origin.html
M Source/WebKit/UIProcess/WebFrameProxy.cpp
M Source/WebKit/UIProcess/WebLockRegistryProxy.cpp
M Source/WebKit/UIProcess/WebProcessProxy.cpp
M Source/WebKit/UIProcess/WebProcessProxy.h
Log Message:
-----------
Cherry-pick 305413.548@safari-7624-branch (e509924cdce7)
https://bugs.webkit.org/show_bug.cgi?id=316223
rdar://178648871
Reviewed by Brady Eidson and Chris Dumez.
Check the authenticity of origins given to
WebLockRegistryProxy::requestLock by
keeping track of every ClientOrigin that got committed in WebFrameProxy.
Test: http/tests/web-locks/web-lock-in-blob-url.html
http/tests/web-locks/web-lock-in-data-url.html
http/tests/web-locks/web-lock-in-opaque-srcdoc.html
http/tests/web-locks/web-lock-in-serviceworker.html
http/tests/web-locks/web-lock-in-sharedworker.html
http/tests/web-locks/web-lock-in-srcdoc.html
ipc/weblock-registry-origin.html
* LayoutTests/http/tests/web-locks/resources/shared-worker.js: Added.
(self.onconnect):
* LayoutTests/http/tests/web-locks/web-lock-in-blob-url-expected.txt: Added.
* LayoutTests/http/tests/web-locks/web-lock-in-blob-url.html: Added.
* LayoutTests/http/tests/web-locks/web-lock-in-data-url-expected.txt: Added.
* LayoutTests/http/tests/web-locks/web-lock-in-data-url.html: Added.
* LayoutTests/http/tests/web-locks/web-lock-in-opaque-srcdoc-expected.txt:
Added.
* LayoutTests/http/tests/web-locks/web-lock-in-opaque-srcdoc.html: Added.
* LayoutTests/http/tests/web-locks/web-lock-in-serviceworker-expected.txt:
Added.
*
LayoutTests/http/tests/web-locks/web-lock-in-serviceworker-service-worker.js:
Added.
(event.event.request.url.indexOf):
* LayoutTests/http/tests/web-locks/web-lock-in-serviceworker.html: Added.
* LayoutTests/http/tests/web-locks/web-lock-in-sharedworker-expected.txt:
Added.
* LayoutTests/http/tests/web-locks/web-lock-in-sharedworker.html: Added.
* LayoutTests/http/tests/web-locks/web-lock-in-srcdoc-expected.txt: Added.
* LayoutTests/http/tests/web-locks/web-lock-in-srcdoc.html: Added.
* LayoutTests/ipc/weblock-registry-origin-expected.txt: Added.
* LayoutTests/ipc/weblock-registry-origin.html: Added.
* Source/WebKit/UIProcess/WebFrameProxy.cpp:
(WebKit::WebFrameProxy::didCommitLoad):
* Source/WebKit/UIProcess/WebLockRegistryProxy.cpp:
(WebKit::WebLockRegistryProxy::requestLock):
(WebKit::WebLockRegistryProxy::releaseLock):
(WebKit::WebLockRegistryProxy::abortLockRequest):
(WebKit::WebLockRegistryProxy::snapshot):
(WebKit::WebLockRegistryProxy::clientIsGoingAway):
* Source/WebKit/UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::hasCommittedClientOrigin const):
(WebKit::WebProcessProxy::didCommitLoadClientOrigin):
* Source/WebKit/UIProcess/WebProcessProxy.h:
Originally-landed-as: 305413.548@safari-7624-branch (e509924cdce7).
rdar://172389530
Canonical link: https://commits.webkit.org/314557@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications