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

Unified Diff: Source/core/input/EventHandler.cpp

Issue 894913002: Prevent default actions for JS-generated mouse events other than click (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: TIL, gclient sync may rebase changes back in time 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/MouseEvent.cpp ('k') | Source/platform/PlatformMouseEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/input/EventHandler.cpp
diff --git a/Source/core/input/EventHandler.cpp b/Source/core/input/EventHandler.cpp
index 41003478ecf59c73c7289fca2080a26f331f6996..3fe9aa2b976f8af09521a90276d088a2d5e772a2 100644
--- a/Source/core/input/EventHandler.cpp
+++ b/Source/core/input/EventHandler.cpp
@@ -1695,7 +1695,8 @@ bool EventHandler::dispatchDragEvent(const AtomicString& eventType, Node* dragTa
event.ctrlKey(), event.altKey(), event.shiftKey(), event.metaKey(),
0, MouseEvent::platformModifiersToButtons(event.modifiers()), nullptr, dataTransfer);
- dragTarget->dispatchEvent(me.get(), IGNORE_EXCEPTION);
+ dragTarget->dispatchMouseEvent(me.get());
+
return me->defaultPrevented();
}
« no previous file with comments | « Source/core/events/MouseEvent.cpp ('k') | Source/platform/PlatformMouseEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698