Index: third_party/WebKit/Source/core/events/EventTarget.cpp |
diff --git a/third_party/WebKit/Source/core/events/EventTarget.cpp b/third_party/WebKit/Source/core/events/EventTarget.cpp |
index cd8b30c521c9f4219c1ad85a184bb37cbd7d4c27..5efe54a1fea00a4c6d0d0b5807fea9cfc7c6d39e 100644 |
--- a/third_party/WebKit/Source/core/events/EventTarget.cpp |
+++ b/third_party/WebKit/Source/core/events/EventTarget.cpp |
@@ -295,7 +295,11 @@ bool EventTarget::addEventListenerInternal(const AtomicString& eventType, EventL |
void EventTarget::addedEventListener(const AtomicString& eventType, RegisteredEventListener& registeredListener) |
{ |
- if (EventUtil::isPointerEventType(eventType)) { |
+ if (eventType == EventTypeNames::auxclick) { |
+ if (LocalDOMWindow* executingWindow = this->executingWindow()) { |
+ UseCounter::count(executingWindow->document(), UseCounter::AuxclickAddListenerCount); |
+ } |
+ } else if (EventUtil::isPointerEventType(eventType)) { |
if (LocalDOMWindow* executingWindow = this->executingWindow()) { |
UseCounter::count(executingWindow->document(), UseCounter::PointerEventAddListenerCount); |
} |