Index: third_party/WebKit/Source/core/page/Page.cpp |
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp |
index 50684c3e4732bfb1bb176a7f1530508540e1bb8e..a635ac89f1090003fe12993e65e75618afae9404 100644 |
--- a/third_party/WebKit/Source/core/page/Page.cpp |
+++ b/third_party/WebKit/Source/core/page/Page.cpp |
@@ -437,8 +437,7 @@ void Page::settingsChanged(SettingsDelegate::ChangeType changeType) { |
if (localFrame->loader() |
.stateMachine() |
->committedFirstRealDocumentLoad()) { |
- // Forcibly instantiate WindowProxy. |
- localFrame->script().windowProxy(DOMWrapperWorld::mainWorld()); |
+ localFrame->script().initializeMainWorld(); |
} |
} |
} break; |