Index: Source/core/frame/LocalDOMWindow.cpp |
diff --git a/Source/core/frame/LocalDOMWindow.cpp b/Source/core/frame/LocalDOMWindow.cpp |
index b845f637256d2e068dd7e43afc115fba0fcc3cb5..3f052418afcb3beefa9ca0a011a9b52324478bac 100644 |
--- a/Source/core/frame/LocalDOMWindow.cpp |
+++ b/Source/core/frame/LocalDOMWindow.cpp |
@@ -1368,6 +1368,7 @@ bool LocalDOMWindow::dispatchEvent(PassRefPtrWillBeRawPtr<Event> prpEvent, PassR |
RefPtrWillBeRawPtr<EventTarget> protect(this); |
RefPtrWillBeRawPtr<Event> event = prpEvent; |
+ event->setTrusted(true); |
event->setTarget(prpTarget ? prpTarget : this); |
event->setCurrentTarget(this); |
event->setEventPhase(Event::AT_TARGET); |