Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(459)

Unified Diff: third_party/WebKit/Source/core/loader/FrameLoader.cpp

Issue 2608163009: Remove ScriptController::updateDocument (Closed)
Patch Set: temp Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/FrameLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
index 7d064994811f9bdcc894363549fda2ad15364ac8..dafe916b9563d86da938dbe4cea8e5ddcac4a5ee 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -1753,8 +1753,10 @@ void FrameLoader::dispatchDidClearDocumentOfWindowObject() {
return;
Settings* settings = m_frame->settings();
- if (settings && settings->getForceMainWorldInitialization())
- m_frame->script().initializeMainWorld();
+ if (settings && settings->getForceMainWorldInitialization()) {
+ // Forcibly instantiate WindowProxy.
+ m_frame->script().windowProxy(DOMWrapperWorld::mainWorld());
+ }
InspectorInstrumentation::didClearDocumentOfWindowObject(m_frame);
if (m_dispatchingDidClearWindowObjectInMainWorld)
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp ('k') | third_party/WebKit/Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698