Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
| diff --git a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
| index e7fc3dcbed2fa990f66309af0a2e7c3123fe718c..3d0920d52b28497bc3294539d351a2484a24e770 100644 |
| --- a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
| +++ b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
| @@ -373,7 +373,8 @@ bool isEnterKeyKeydownEvent(Event* event) |
| bool isLinkClick(Event* event) |
| { |
| - return event->type() == EventTypeNames::click && (!event->isMouseEvent() || toMouseEvent(event)->button() != RightButton); |
| + // Allow detail <= 1 so that synthetic clicks work. They have detail == 0. |
|
Rick Byers
2016/05/25 17:25:14
nit: "they may have", right? Presumably JS should
dtapuska
2016/05/25 19:25:47
Done.
|
| + return event->type() == EventTypeNames::click && (!event->isMouseEvent() || (toMouseEvent(event)->button() != RightButton && toMouseEvent(event)->detail() <= 1)); |
| } |
| bool HTMLAnchorElement::willRespondToMouseClickEvents() |