[webkit-changes] [WebKit/WebKit] b6dd51: Change type of FrameLoader opener and ScriptContro...
Pascoe
noreply at github.com
Tue Apr 25 09:39:14 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b6dd5136a4bb992aa4e1a10923f03a36e8486d24
https://github.com/WebKit/WebKit/commit/b6dd5136a4bb992aa4e1a10923f03a36e8486d24
Author: J Pascoe <j_pascoe at apple.com>
Date: 2023-04-25 (Tue, 25 Apr 2023)
Changed paths:
M Source/WebCore/bindings/js/JSDOMWindowBase.cpp
M Source/WebCore/bindings/js/ScriptController.h
M Source/WebCore/dom/Document.cpp
M Source/WebCore/loader/DocumentLoader.cpp
M Source/WebCore/loader/FrameLoader.cpp
M Source/WebCore/loader/FrameLoader.h
M Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp
M Source/WebKit/WebProcess/WebCoreSupport/WebResourceLoadObserver.cpp
M Source/WebKitLegacy/mac/WebView/WebFrame.mm
Log Message:
-----------
Change type of FrameLoader opener and ScriptController globalObject
https://bugs.webkit.org/show_bug.cgi?id=255743
rdar://108333335
Reviewed by Chris Dumez.
This patch does some refactoring required for PSON in windows opened
via window.open. The first part is changing the type of opener in
FrameLoader to accept a Frame instead of a LocalFrame. The second part
is changing the type of ScriptController's globalObject method to return
a global object instead of a local window.
* Source/WebCore/bindings/js/JSDOMWindowBase.cpp:
(WebCore::toJSLocalDOMWindow):
* Source/WebCore/bindings/js/ScriptController.h:
(WebCore::ScriptController::globalObject):
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::fallbackBaseURL const):
(WebCore::Document::canNavigateInternal):
(WebCore::Document::initSecurityContext):
(WebCore::Document::initContentSecurityPolicy):
* Source/WebCore/loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::doCrossOriginOpenerHandlingOfResponse):
* Source/WebCore/loader/FrameLoader.cpp:
(WebCore::FrameLoader::detachFromAllOpenedFrames):
(WebCore::FrameLoader::opener):
(WebCore::FrameLoader::opener const):
(WebCore::FrameLoader::setOpener):
(WebCore::FrameLoader::setOriginalURLForDownloadRequest):
(WebCore::FrameLoader::updateRequestAndAddExtraFields):
(WebCore::FrameLoader::effectiveReferrerPolicy const):
* Source/WebCore/loader/FrameLoader.h:
* Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp:
(WebKit::WebLoaderStrategy::scheduleLoadFromNetworkProcess):
* Source/WebKit/WebProcess/WebCoreSupport/WebResourceLoadObserver.cpp:
(WebKit::WebResourceLoadObserver::logUserInteractionWithReducedTimeResolution):
* Source/WebKitLegacy/mac/WebView/WebFrame.mm:
(-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
Canonical link: https://commits.webkit.org/263375@main
More information about the webkit-changes
mailing list