diff options
Diffstat (limited to 'V8Binding/binding/v8_proxy.cpp')
-rw-r--r-- | V8Binding/binding/v8_proxy.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/V8Binding/binding/v8_proxy.cpp b/V8Binding/binding/v8_proxy.cpp index c0de3c6..8675d6f 100644 --- a/V8Binding/binding/v8_proxy.cpp +++ b/V8Binding/binding/v8_proxy.cpp @@ -2011,9 +2011,11 @@ void V8Proxy::updateDocument() if (!m_frame->document()) return; - if (m_context.IsEmpty()) + if (m_global.IsEmpty()) return; + InitContextIfNeeded(); + // We have a new document and we need to update the cache. UpdateDocumentWrapperCache(); |