Web Inspector: Audit: provide a way to determine whether a give node has event listeners
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Jan 2019 16:31:05 +0000 (16:31 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Jan 2019 16:31:05 +0000 (16:31 +0000)
commit62c5d3c191fde84c1fcfed56f88a20e433511858
tree200cd99de9716b9800e7ea19ea6e1ebf88b5ca67
parentbbff04329569a601e556a8e016bacd2d69380be1
Web Inspector: Audit: provide a way to determine whether a give node has event listeners
https://bugs.webkit.org/show_bug.cgi?id=193226
<rdar://problem/46800005>

Reviewed by Joseph Pecoraro.

Source/WebCore:

Test: inspector/audit/run-dom.html

* inspector/InspectorAuditDOMObject.idl:
* inspector/InspectorAuditDOMObject.h:
* inspector/InspectorAuditDOMObject.cpp:
(WebCore::InspectorAuditDOMObject::hasEventListeners): Added.

LayoutTests:

* inspector/audit/run-dom.html: Added.
* inspector/audit/run-dom-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239987 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/audit/run-dom-expected.txt [new file with mode: 0644]
LayoutTests/inspector/audit/run-dom.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/inspector/InspectorAuditDOMObject.cpp
Source/WebCore/inspector/InspectorAuditDOMObject.h
Source/WebCore/inspector/InspectorAuditDOMObject.idl