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 7f78a2a35a90669ceea0d71abf4c7ddd5370e14c..beeda156bfe6424a6637f27ddaf186842e1967f7 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp |
@@ -398,11 +398,6 @@ void WindowProxy::updateDocumentProperty() |
updateDocumentWrapper(v8::Local<v8::Object>::Cast(documentWrapper)); |
checkDocumentWrapper(m_document.newLocal(m_isolate), frame->document()); |
- ASSERT(documentWrapper->IsObject()); |
- // TODO(jochen): Don't replace the accessor with a data value. We need a way to tell v8 that the accessor's return value won't change after this point. |
- if (!v8CallBoolean(context->Global()->ForceSet(context, v8AtomicString(m_isolate, "document"), documentWrapper, static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontDelete)))) |
- return; |
- |
// We also stash a reference to the document on the inner global object so that |
// LocalDOMWindow objects we obtain from JavaScript references are guaranteed to have |
// live Document objects. |