| Index: third_party/WebKit/Source/core/dom/ExecutionContext.h
|
| diff --git a/third_party/WebKit/Source/core/dom/ExecutionContext.h b/third_party/WebKit/Source/core/dom/ExecutionContext.h
|
| index 0310212da52275bdc3bd5182e52a02044dd4ac3a..0cffa7e9523c36582359feae875a5edb551672fd 100644
|
| --- a/third_party/WebKit/Source/core/dom/ExecutionContext.h
|
| +++ b/third_party/WebKit/Source/core/dom/ExecutionContext.h
|
| @@ -28,6 +28,7 @@
|
| #ifndef ExecutionContext_h
|
| #define ExecutionContext_h
|
|
|
| +#include "bindings/core/v8/ScriptState.h"
|
| #include "core/CoreExport.h"
|
| #include "core/dom/ContextLifecycleNotifier.h"
|
| #include "core/dom/ContextLifecycleObserver.h"
|
| @@ -179,6 +180,10 @@ class CORE_EXPORT ExecutionContext : public ContextLifecycleNotifier,
|
| void setReferrerPolicy(ReferrerPolicy);
|
| virtual ReferrerPolicy getReferrerPolicy() const { return m_referrerPolicy; }
|
|
|
| + void setErrorEventScriptState(ScriptState* scriptState) { m_errorEventScriptState = scriptState; }
|
| + void clearErrorEventScriptState() { m_errorEventScriptState.clear(); }
|
| + ScriptState* errorEventScriptState() { return m_errorEventScriptState.get(); }
|
| +
|
| protected:
|
| ExecutionContext();
|
| virtual ~ExecutionContext();
|
| @@ -194,6 +199,7 @@ class CORE_EXPORT ExecutionContext : public ContextLifecycleNotifier,
|
|
|
| bool m_inDispatchErrorEvent;
|
| HeapVector<Member<ErrorEvent>> m_pendingExceptions;
|
| + RefPtr<ScriptState> m_errorEventScriptState;
|
|
|
| bool m_activeDOMObjectsAreSuspended;
|
| bool m_activeDOMObjectsAreStopped;
|
|
|