-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Site Isolation] Reduce code duplication when sending IPC to a web page
https://bugs.webkit.org/show_bug.cgi?id=264788 rdar://118368823 Reviewed by Alex Christensen. With site isolation we often need to check if a RemotePageProxy exists for a given frame before sending IPC to the process hosting the frame. We should have a helper function instead of duplicating this logic throughout WebPageProxy. * Source/WebKit/UIProcess/RemotePageProxy.cpp: (WebKit::RemotePageProxy::sendMouseEvent): Deleted. * Source/WebKit/UIProcess/RemotePageProxy.h: * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::performDragControllerAction): (WebKit::WebPageProxy::dragEnded): (WebKit::WebPageProxy::handleMouseEventReply): (WebKit::WebPageProxy::sendMouseEvent): (WebKit::WebPageProxy::sendKeyEvent): (WebKit::WebPageProxy::runJavaScriptInFrameInScriptWorld): (WebKit::WebPageProxy::dispatchLoadEventToFrameOwnerElement): (WebKit::WebPageProxy::sendToWebPage): (WebKit::WebPageProxy::sendToProcessContainingFrame): * Source/WebKit/UIProcess/WebPageProxy.h: Canonical link: https://commits.webkit.org/270723@main
- Loading branch information
1 parent
dfe3191
commit 7d27cdd
Showing
4 changed files
with
47 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters