DescriptionMerge 67261 - Make middle clicks not fire DOM onclick events.
https://bugs.webkit.org/show_bug.cgi?id=22382
Reviewed by Darin Adler.
WebCore:
* html/HTMLAnchorElement.cpp: Explicitly include middle-clicks in the
computation of what constitutes a link click, since they're no longer
implicitly included.
(WebCore::isLinkClick):
* html/HTMLInputElement.cpp: Removed unneeded checks that click events
are coming from the left mouse button, since they all are now.
(WebCore::HTMLInputElement::preDispatchEventHandler):
(WebCore::HTMLInputElement::postDispatchEventHandler):
(WebCore::HTMLInputElement::defaultEventHandler):
* page/EventHandler.cpp: Changed logic to send a click event only for
the left button.
(WebCore::EventHandler::handleMouseDoubleClickEvent):
(WebCore::EventHandler::handleMouseReleaseEvent):
LayoutTests:
* fast/events/mouse-click-events-expected.txt:
* fast/events/script-tests/mouse-click-events.js:
TBR=pkasting@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67263
Patch Set 1 #
Messages
Total messages: 1 (0 generated)
|