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 c844933df3de3000ff9a7ca41652da2932386d81..7051d66fb9b8f1d3939b42f20bc08f60eb04ed44 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp |
@@ -518,7 +518,7 @@ static void getter(v8::Local<v8::Name> property, |
void WindowProxy::namedItemAdded(HTMLDocument* document, |
const AtomicString& name) { |
DCHECK(m_world->isMainWorld()); |
- |
+ DCHECK(m_scriptState); |
if (!isContextInitialized()) |
return; |
@@ -535,10 +535,9 @@ void WindowProxy::namedItemAdded(HTMLDocument* document, |
void WindowProxy::namedItemRemoved(HTMLDocument* document, |
const AtomicString& name) { |
DCHECK(m_world->isMainWorld()); |
- |
+ DCHECK(m_scriptState); |
if (!isContextInitialized()) |
return; |
- |
if (document->hasNamedItem(name) || document->hasExtraNamedItem(name)) |
return; |