-
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.
Allow named frame navigation in RemoteFrames
https://bugs.webkit.org/show_bug.cgi?id=264846 rdar://118363128 Reviewed by Pascoe. A few places where we made it only work with LocalFrames can be generalized to work with any type of Frame. Doing so a little more makes an existing test start working like it did before site isolation. We already have a large task to audit all uses of dynamicDowncast<LocalFrame>, so the parts of this PR that might not work correctly with site isolation yet will at some point. No changes affect behavior with site isolation not enabled, and no changes cause nullptr crashes with site isolation enabled. * LayoutTests/http/tests/site-isolation/window-open-with-name-expected.txt: * LayoutTests/http/tests/site-isolation/window-open-with-name.html: * Source/WebCore/html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::submitIfPossible): * Source/WebCore/inspector/InspectorFrontendClientLocal.cpp: (WebCore::InspectorFrontendClientLocal::openURLExternally): * Source/WebCore/loader/FrameLoader.cpp: (WebCore::FrameLoader::detachFromAllOpenedFrames): (WebCore::FrameLoader::loadURL): (WebCore::FrameLoader::load): (WebCore::FrameLoader::loadPostRequest): (WebCore::FrameLoader::findFrameForNavigation): (WebCore::createWindow): * Source/WebCore/loader/FrameLoader.h: * Source/WebCore/page/Frame.h: * Source/WebCore/page/LocalDOMWindow.cpp: (WebCore::LocalDOMWindow::opener const): (WebCore::LocalDOMWindow::createWindow): * Source/WebCore/page/LocalFrame.cpp: (WebCore::LocalFrame::setOpener): * Source/WebCore/page/LocalFrame.h: * Source/WebCore/page/RemoteFrame.h: Canonical link: https://commits.webkit.org/270789@main
- Loading branch information
1 parent
f15fc78
commit 7068fc9
Showing
11 changed files
with
40 additions
and
31 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
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
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