Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 04a093f390151d1cdbd50604dcaab03ba880b946
https://github.com/WebKit/WebKit/commit/04a093f390151d1cdbd50604dcaab03ba880b946
Author: Kiet Ho <[email protected]>
Date: 2026-02-08 (Sun, 08 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/NavigationActivation.h
M Source/WebKit/WebProcess/WebPage/WebFrame.cpp
Log Message:
-----------
[Site Isolation] Dispatch pageswap event on navigation
rdar://150216569
https://bugs.webkit.org/show_bug.cgi?id=306447
Reviewed by Ryosuke Niwa.
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:
* Source/WebCore/page/NavigationActivation.h:
* Source/WebKit/WebProcess/WebPage/WebFrame.cpp:
(WebKit::WebFrame::loadDidCommitInAnotherProcess):
Canonical link: https://commits.webkit.org/307047@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications