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

Unified Diff: Source/core/dom/Node.cpp

Issue 1233233003: Add Event.isTrusted support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master_event_trusted_main2
Patch Set: Fix nits Created 5 years, 5 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/bindings/scripts/v8_attributes.py ('k') | Source/core/events/Event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index 9b0504fbd26ab90cdfb77e538837f2cbdd596baf..a0b127b3bb108f6a91361cd2727ffb82e293cbc3 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -1999,6 +1999,7 @@ void Node::handleLocalEvents(Event& event)
void Node::dispatchScopedEvent(PassRefPtrWillBeRawPtr<Event> event)
{
+ event->setTrusted(true);
EventDispatcher::dispatchScopedEvent(*this, event->createMediator());
}
@@ -2038,7 +2039,6 @@ bool Node::dispatchMouseEvent(const PlatformMouseEvent& nativeEvent, const Atomi
int detail, Node* relatedTarget)
{
RefPtrWillBeRawPtr<MouseEvent> event = MouseEvent::create(eventType, document().domWindow(), nativeEvent, detail, relatedTarget);
- event->setTrusted(true);
return dispatchEvent(event);
}
« no previous file with comments | « Source/bindings/scripts/v8_attributes.py ('k') | Source/core/events/Event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698