Augmented Inspector: Provide a way to inspect a DOM Node (DOM.inspect)
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Sep 2017 22:22:38 +0000 (22:22 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Sep 2017 22:22:38 +0000 (22:22 +0000)
commit8e3cfb0c53a27d7de0c5e185e52c8d40a4fe05a9
treed62b79d706541c1e9fd84b52ff6dc449bcd2d6d6
parentc740c75fdc2bb917c1fe617a1338c4254783c8f1
Augmented Inspector: Provide a way to inspect a DOM Node (DOM.inspect)
https://bugs.webkit.org/show_bug.cgi?id=176563
<rdar://problem/19639583>

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2017-09-07
Reviewed by Matt Baker.

Source/JavaScriptCore:

* inspector/protocol/DOM.json:
Add an event that is useful for augmented inspectors to inspect
a node. Web pages will still prefer Inspector.inspect.

Source/WebInspectorUI:

* UserInterface/Base/Main.js:
(WI.contentLoaded):
Always create the element search toolbar icon. Only show it if the DOM domain
is available. With augmented agents the DOM domain may be activated later.

* UserInterface/Protocol/DOMObserver.js:
(WI.DOMObserver.prototype.inspect):
Select the node in the DOM tree outline.

LayoutTests:

* inspector/dom/inspect-expected.txt: Added.
* inspector/dom/inspect.html: Added.
Test the frontend on receiving DOM.inspect events.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@221765 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/dom/inspect-expected.txt [new file with mode: 0644]
LayoutTests/inspector/dom/inspect.html [new file with mode: 0644]
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/inspector/protocol/DOM.json
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Base/Main.js
Source/WebInspectorUI/UserInterface/Protocol/DOMObserver.js