-
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.
window.open should be able to handle redirects with site isolation en…
…abled https://bugs.webkit.org/show_bug.cgi?id=264970 rdar://118522568 Reviewed by Pascoe. 3 things were needed to make this work correctly. 1. In WebPageProxy::decidePolicyForNavigationAction we need to get the correct frameProcessBeforeNavigation whether we use a ProvisionalFrameProxy (for non-main frame site-isolated navigation) or a ProvisionalPageProxy (for main frame site-isolated navigation like window.open). 2. In ProvisionalPageProxy::didCreateMainFrame we need to call didReceiveServerRedirectForProvisionalLoad instead of didStartProvisionalLoad because after multiple HTTP redirects we make a ProvisionalPageProxy for each redirect. Future work is already scheduled to fix this, but until then we can make the FrameLoadState have the correct state by adding some site-isolation specific logic here. 3. In WebPageProxy::addOpenedRemotePageProxy we need to remove an assertion until that same work is complete because we currently make a RemotePageProxy to communicate with each web content process along an HTTP redirect chain. * Source/WebKit/UIProcess/ProvisionalPageProxy.cpp: (WebKit::ProvisionalPageProxy::didCreateMainFrame): * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::decidePolicyForNavigationAction): (WebKit::WebPageProxy::addOpenedRemotePageProxy): * Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm: (TestWebKitAPI::openerAndOpenedViews): (TestWebKitAPI::TEST): Canonical link: https://commits.webkit.org/270849@main
- Loading branch information
1 parent
88d7c41
commit eb56cc4
Showing
3 changed files
with
41 additions
and
6 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