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 6e8dbc7ca9c56d4b19ff438aa396fe8e1ff3c2c9..d54f064f58a9f05e1d484b147b20ff269825b589 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp |
@@ -402,8 +402,6 @@ void WindowProxy::updateDocumentProperty() |
v8::Local<v8::Context> context = m_scriptState->context(); |
LocalFrame* frame = toLocalFrame(m_frame); |
v8::Local<v8::Value> documentWrapper = toV8(frame->document(), context->Global(), context->GetIsolate()); |
- if (documentWrapper.IsEmpty()) |
- return; |
ASSERT(documentWrapper == m_document.newLocal(m_isolate) || m_document.isEmpty()); |
if (m_document.isEmpty()) |
updateDocumentWrapper(v8::Local<v8::Object>::Cast(documentWrapper)); |