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 b750f2657faee14354032ea38feadde1dac1085d..76e5c9e00df5b2032b14bb9ce3b0b865acb1fccd 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp |
@@ -122,6 +122,8 @@ v8::Local<v8::Object> WindowProxy::releaseGlobal() { |
} |
void WindowProxy::setGlobal(v8::Local<v8::Object> global) { |
+ DCHECK(m_lifecycle == Lifecycle::ContextUninitialized); |
+ |
m_globalProxy.set(m_isolate, global); |
// Initialize the window proxy now, to re-establish the connection between |