[webkit-changes] [WebKit/WebKit] 8a80c2: Use values from UI process to determine if a page ...

Pascoe noreply at github.com
Fri Jul 7 17:56:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8a80c29fe0ec6523c498978a2ac7579a2f154ad6
      https://github.com/WebKit/WebKit/commit/8a80c29fe0ec6523c498978a2ac7579a2f154ad6
  Author: J Pascoe <j_pascoe at apple.com>
  Date:   2023-07-07 (Fri, 07 Jul 2023)

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

  Log Message:
  -----------
  Use values from UI process to determine if a page has an opener relationship should PSON
https://bugs.webkit.org/show_bug.cgi?id=258644
rdar://107128358

Reviewed by Chris Dumez.

The UI process recieves messages that let it determine if a frame has opened by DOM or if
it was opened by DOM. This patch uses that info insteads of relying on what's passed from
the web process during the navigation call when determining whether to PSON.

* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::createNewPage):
(WebKit::WebPageProxy::hasOpenedPage const):
(WebKit::WebPageProxy::addOpenedPage):
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/UIProcess/WebPageProxyInternals.h:
* Source/WebKit/UIProcess/WebProcessPool.cpp:
(WebKit::WebProcessPool::processForNavigationInternal):

Canonical link: https://commits.webkit.org/265872@main




More information about the webkit-changes mailing list