Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2ec53fd7f1557b1dd25687a6ceb0e1b7a6a26f6e
https://github.com/WebKit/WebKit/commit/2ec53fd7f1557b1dd25687a6ceb0e1b7a6a26f6e
Author: Kiet Ho <[email protected]>
Date: 2026-02-11 (Wed, 11 Feb 2026)
Changed paths:
A LayoutTests/http/tests/site-isolation/pageswap-event-expected.txt
A LayoutTests/http/tests/site-isolation/pageswap-event.html
M Source/WebCore/Headers.cmake
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/dom/Document.h
M Source/WebCore/page/Navigation.h
M Source/WebCore/page/NavigationActivation.h
M Source/WebCore/page/NavigationHistoryEntry.cpp
M Source/WebCore/page/NavigationHistoryEntry.h
M Source/WebKit/WebProcess/WebPage/WebFrame.cpp
Log Message:
-----------
[Re-land] [Site Isolation] Dispatch pageswap event on navigation
rdar://169951382
https://bugs.webkit.org/show_bug.cgi?id=307320
Reviewed by Ryosuke Niwa.
Re-land, last attempt was reverted because it broke internal iOS builds.
Original commit message follows:
pageswap event is dispatched by FrameLoader::commitProvisionalLoad, which is
only called on same-origin navigation when Site Isolation is enabled. For
cross-origin navigation, WebFrame::loadDidCommitInAnotherProcess is called
instead, so this commit adds code to dispatch pageswap there.
Test: http/tests/site-isolation/pageswap-event.html
* LayoutTests/http/tests/site-isolation/pageswap-event-expected.txt: Added.
* LayoutTests/http/tests/site-isolation/pageswap-event.html: Added.
* Source/WebCore/Headers.cmake:
- Add headers that exist but were not listed in Headers.cmake.
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
- Add headers that exist but were not added to the Xcode project.
* Source/WebCore/dom/Document.h:
- WEBCORE_EXPORT Document::dispatchPageswapEvent so it can be called from
WebKit.
* Source/WebCore/page/Navigation.h:
* Source/WebCore/page/NavigationActivation.h:
- Optimize includes and uses angle brackets to include.
* Source/WebCore/page/NavigationHistoryEntry.cpp:
* Source/WebCore/page/NavigationHistoryEntry.h:
- Optimize includes and uses angle brackets to include.
* Source/WebKit/WebProcess/WebPage/WebFrame.cpp:
(WebKit::WebFrame::loadDidCommitInAnotherProcess):
- Add code to dispatch pageswap event.
Canonical link: https://commits.webkit.org/307249@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications