| 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..054765a1ab488fb6b3b79eaeaebd8b1eea2ef90a 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 may have detail == 0.
|
| + return event->type() == EventTypeNames::click && (!event->isMouseEvent() || (toMouseEvent(event)->button() != RightButton && toMouseEvent(event)->detail() <= 1));
|
| }
|
|
|
| bool HTMLAnchorElement::willRespondToMouseClickEvents()
|
|
|