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

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

Issue 2608163009: Remove ScriptController::updateDocument (Closed)
Patch Set: 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 e330262b19fb0eb8426a68b995ee40a55ccb690f..e2ea33baa63b57e82e6e47517b82af9d463fefcb 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -1751,8 +1751,10 @@ void FrameLoader::dispatchDidClearDocumentOfWindowObject() {
return;
Settings* settings = m_frame->settings();
- if (settings && settings->forceMainWorldInitialization())
- m_frame->script().initializeMainWorld();
+ if (settings && settings->forceMainWorldInitialization()) {
+ // Forcibly instantiate WindowProxy.
Yuki 2017/01/05 12:10:06 This is a good comment! Why don't we have similar
+ m_frame->script().windowProxy(DOMWrapperWorld::mainWorld());
+ }
InspectorInstrumentation::didClearDocumentOfWindowObject(m_frame);
if (m_dispatchingDidClearWindowObjectInMainWorld)

Powered by Google App Engine
This is Rietveld 408576698