Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: third_party/WebKit/Source/core/dom/ExecutionContext.h

Issue 2420223002: Dispatching errors across iframes don't match webplatform tests
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698