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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp

Issue 2630693002: Make ScriptController inherit LocalWindowProxyManager
Patch Set: Add comments 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 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

Powered by Google App Engine
This is Rietveld 408576698