Index: third_party/WebKit/Source/bindings/core/v8/RemoteWindowProxy.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/RemoteWindowProxy.cpp b/third_party/WebKit/Source/bindings/core/v8/RemoteWindowProxy.cpp |
index 7142508485d7912cc46af2c93f1ffb63a2f55e9c..1a413923bc5122019ee44034ac1d8f3fc00d0108 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/RemoteWindowProxy.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/RemoteWindowProxy.cpp |
@@ -60,12 +60,10 @@ void RemoteWindowProxy::disposeContext(GlobalDetachmentBehavior behavior) { |
v8::Local<v8::Context> context = m_scriptState->context(); |
// Clean up state on the global proxy, which will be reused. |
if (!m_globalProxy.isEmpty()) { |
- // TODO(yukishiino): This DCHECK failed on Canary (M57) and Dev (M56). |
- // We need to figure out why m_globalProxy != context->Global(). |
- DCHECK(m_globalProxy == context->Global()); |
- DCHECK_EQ(toScriptWrappable(context->Global()), |
- toScriptWrappable( |
- context->Global()->GetPrototype().As<v8::Object>())); |
+ CHECK(m_globalProxy == context->Global()); |
+ CHECK_EQ(toScriptWrappable(context->Global()), |
+ toScriptWrappable( |
+ context->Global()->GetPrototype().As<v8::Object>())); |
m_globalProxy.get().SetWrapperClassId(0); |
} |
V8DOMWrapper::clearNativeInfo(isolate(), context->Global()); |