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); |
} |