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 d582360d44a27884e0f1d7ec3b5239a506f1e32d..040942b275d81a5d1febf9b9e6476134aba1069a 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp |
@@ -80,10 +80,11 @@ v8::Local<v8::Object> WindowProxy::globalIfNotDetached() { |
v8::Local<v8::Object> WindowProxy::releaseGlobal() { |
DCHECK(m_lifecycle != Lifecycle::ContextInitialized); |
+ |
// Make sure the global object was detached from the proxy by calling |
// clearForNavigation(). |
- if (m_lifecycle == Lifecycle::ContextDetached) |
- ASSERT(m_scriptState->isGlobalObjectDetached()); |
+ DLOG_IF(FATAL, m_isGlobalObjectAttached) |
+ << "Context not detached by calling clearForNavigation()"; |
v8::Local<v8::Object> global = m_globalProxy.newLocal(m_isolate); |
m_globalProxy.clear(); |