[webkit-changes] [WebKit/WebKit] 7d27cd: [Site Isolation] Reduce code duplication when send...

Charlie Wolfe noreply at github.com
Tue Nov 14 13:40:25 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7d27cdd3e980f1d2de99a9525eee9efba8929a07
      https://github.com/WebKit/WebKit/commit/7d27cdd3e980f1d2de99a9525eee9efba8929a07
  Author: Charlie Wolfe <charliew at apple.com>
  Date:   2023-11-14 (Tue, 14 Nov 2023)

  Changed paths:
    M Source/WebKit/UIProcess/RemotePageProxy.cpp
    M Source/WebKit/UIProcess/RemotePageProxy.h
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/UIProcess/WebPageProxy.h

  Log Message:
  -----------
  [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




More information about the webkit-changes mailing list