Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9d4788bb9669dff43ad84c9be5c8215617954fa5
https://github.com/WebKit/WebKit/commit/9d4788bb9669dff43ad84c9be5c8215617954fa5
Author: Brady Eidson <[email protected]>
Date: 2026-06-30 (Tue, 30 Jun 2026)
Changed paths:
M Source/WebKit/UIProcess/WebBackForwardList.cpp
M Source/WebKit/UIProcess/WebProcessProxy.cpp
A Tools/TestWebKitAPI/Tests/WebKit/WKBackForwardListTests.mm
Log Message:
-----------
Need a process-specific `WebBackForwardListItem::allItems()` instead of the
process-global map for better message checking
rdar://174702519
Reviewed by Ben Nham.
When considering whether a given web process should have access to a given
back/forward entry,
the global map is the wrong tool.
Check on a per-process basis instead.
Test: Tools/TestWebKitAPI/Tests/WebKit/WKBackForwardListTests.mm
* Source/WebKit/UIProcess/WebBackForwardList.cpp:
(WebKit::messageCheckItemURLs):
(WebKit::WebBackForwardList::backForwardAddItemShared):
(WebKit::WebBackForwardList::backForwardSetChildItem):
(WebKit::WebBackForwardList::backForwardUpdateItem):
* Source/WebKit/UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::checkURLReceivedFromWebProcess):
* Tools/TestWebKitAPI/Tests/WebKit/WKBackForwardListTests.mm:
(<script>):
(ForgedFileURLItemIsRejected)):
Originally-landed-as: 305413.831@safari-7624-branch (249edf86a9f5).
rdar://180428225
Canonical link: https://commits.webkit.org/316143@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications