summaryrefslogtreecommitdiffstats
path: root/V8Binding
diff options
context:
space:
mode:
Diffstat (limited to 'V8Binding')
-rw-r--r--V8Binding/binding/v8_proxy.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/V8Binding/binding/v8_proxy.cpp b/V8Binding/binding/v8_proxy.cpp
index 2d5ee4c..c0de3c6 100644
--- a/V8Binding/binding/v8_proxy.cpp
+++ b/V8Binding/binding/v8_proxy.cpp
@@ -1966,10 +1966,6 @@ void V8Proxy::clearForNavigation()
m_context->DetachGlobal();
DisposeContextHandles();
-
- // Reinitialize the context so the global object points to
- // the new DOM window.
- InitContextIfNeeded();
}
}
@@ -2015,10 +2011,8 @@ void V8Proxy::updateDocument()
if (!m_frame->document())
return;
- if (m_global.IsEmpty()) {
- ASSERT(m_context.IsEmpty());
+ if (m_context.IsEmpty())
return;
- }
// We have a new document and we need to update the cache.
UpdateDocumentWrapperCache();