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

Unified Diff: Source/core/events/PromiseRejectionEvent.h

Issue 1218733003: Restrict PromiseRejectionEvents to their originating world (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/core/events/Event.h ('k') | Source/core/events/PromiseRejectionEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/PromiseRejectionEvent.h
diff --git a/Source/core/events/PromiseRejectionEvent.h b/Source/core/events/PromiseRejectionEvent.h
index c71f5dbe04b5598b4aa51faad2fd551469712fb3..258fd65e296be9f2c4082ffc08a3f968ec7ae978 100644
--- a/Source/core/events/PromiseRejectionEvent.h
+++ b/Source/core/events/PromiseRejectionEvent.h
@@ -5,6 +5,7 @@
#ifndef PromiseRejectionEvent_h
#define PromiseRejectionEvent_h
+#include "bindings/core/v8/DOMWrapperWorld.h"
#include "bindings/core/v8/ScopedPersistent.h"
#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/core/v8/ScriptState.h"
@@ -32,6 +33,10 @@ public:
virtual const AtomicString& interfaceName() const override;
+ // PromiseRejectionEvents are similar to ErrorEvents in that they can't be
+ // observed across different worlds.
+ virtual bool canBeDispatchedInWorld(const DOMWrapperWorld&) const override;
+
DECLARE_VIRTUAL_TRACE();
private:
« no previous file with comments | « Source/core/events/Event.h ('k') | Source/core/events/PromiseRejectionEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698