[webkit-changes] [WebKit/WebKit] 92dfc5: Send a load event to site-isolated frame's owner e...
Charlie Wolfe
noreply at github.com
Fri Sep 15 19:46:22 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 92dfc548276ffe684fc195c1e87b0a0b15a88d0f
https://github.com/WebKit/WebKit/commit/92dfc548276ffe684fc195c1e87b0a0b15a88d0f
Author: Charlie Wolfe <charliew at apple.com>
Date: 2023-09-15 (Fri, 15 Sep 2023)
Changed paths:
A LayoutTests/http/tests/site-isolation/load-event-expected.txt
A LayoutTests/http/tests/site-isolation/load-event.html
M Source/WebCore/loader/EmptyClients.cpp
M Source/WebCore/loader/EmptyFrameLoaderClient.h
M Source/WebCore/loader/LocalFrameLoaderClient.h
M Source/WebCore/page/LocalDOMWindow.cpp
M Source/WebKit/UIProcess/WebPageProxy.cpp
M Source/WebKit/UIProcess/WebPageProxy.h
M Source/WebKit/UIProcess/WebPageProxy.messages.in
M Source/WebKit/WebProcess/WebCoreSupport/WebLocalFrameLoaderClient.cpp
M Source/WebKit/WebProcess/WebCoreSupport/WebLocalFrameLoaderClient.h
M Source/WebKit/WebProcess/WebPage/WebPage.cpp
M Source/WebKit/WebProcess/WebPage/WebPage.h
M Source/WebKit/WebProcess/WebPage/WebPage.messages.in
M Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.h
M Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm
Log Message:
-----------
Send a load event to site-isolated frame's owner element
https://bugs.webkit.org/show_bug.cgi?id=261620
rdar://115570366
Reviewed by Alex Christensen.
With site isolation, a frame’s owner element may be in a different process than the frame is. In
this situation, we need to tell the UI process that a load event has been dispatched so it can be
forwarded to the owner element which is hosted in the parent frame’s process.
* LayoutTests/http/tests/site-isolation/load-event-expected.txt: Added.
* LayoutTests/http/tests/site-isolation/load-event.html: Added.
* Source/WebCore/loader/EmptyClients.cpp:
(WebCore::EmptyFrameLoaderClient::dispatchLoadEventToOwnerElement):
* Source/WebCore/loader/EmptyFrameLoaderClient.h:
* Source/WebCore/loader/LocalFrameLoaderClient.h:
* Source/WebCore/page/LocalDOMWindow.cpp:
(WebCore::LocalDOMWindow::dispatchLoadEvent):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::dispatchLoadEventToFrameOwnerElement):
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/UIProcess/WebPageProxy.messages.in:
* Source/WebKit/WebProcess/WebCoreSupport/WebLocalFrameLoaderClient.cpp:
(WebKit::WebLocalFrameLoaderClient::dispatchLoadEventToOwnerElement):
* Source/WebKit/WebProcess/WebCoreSupport/WebLocalFrameLoaderClient.h:
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::dispatchLoadEventToFrameOwnerElement):
* Source/WebKit/WebProcess/WebPage/WebPage.h:
* Source/WebKit/WebProcess/WebPage/WebPage.messages.in:
* Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.h:
Canonical link: https://commits.webkit.org/268050@main
More information about the webkit-changes
mailing list