Index: third_party/WebKit/Source/bindings/core/v8/WindowProxy.h |
diff --git a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h |
index 9089f013b83894a81d2d280d5737db54716a7745..3a4b02e16740b770a2f2fa9d38a75016690a4a80 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h |
@@ -54,6 +54,9 @@ class WindowProxy : public GarbageCollectedFinalized<WindowProxy> { |
v8::Local<v8::Context> contextIfInitialized() const { |
return m_scriptState ? m_scriptState->context() : v8::Local<v8::Context>(); |
} |
+ bool isInitialized() const { |
+ return m_lifecycle == Lifecycle::ContextInitialized; |
+ } |
void initializeIfNeeded(); |
void clearForClose(); |