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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/WindowProxy.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/bindings/core/v8/WindowProxy.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
index bf7d4eb08bfbc6e3c288b02ad0f940163ff34fbd..c61383603fc018f7f6a841cd03f2a4659b4ce63a 100644
--- a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
@@ -460,6 +460,8 @@ void WindowProxy::setSecurityToken(SecurityOrigin* origin) {
void WindowProxy::updateDocument() {
DCHECK(m_world->isMainWorld());
+ // For an uninitialized main window proxy, there's nothing we need
+ // to update. The update is done when the window proxy gets initialized later.
if (!isContextInitialized())
return;

Powered by Google App Engine
This is Rietveld 408576698