RESOLVED FIXED176563
Augmented Inspector: Provide a way to inspect a DOM Node (DOM.inspect)
https://bugs.webkit.org/show_bug.cgi?id=176563
Summary Augmented Inspector: Provide a way to inspect a DOM Node (DOM.inspect)
Joseph Pecoraro
Reported 2017-09-07 13:43:26 PDT
Augmented Inspector: Provide a way to inspect a DOM Node (DOM.inspect) Augmented Agents don't have access to the Inspector domain so they can't send Inspector.inspect events with a RemoteObject. They do however have access to the DOM domain and control nodeIds, so lets provide a parallel DOM.inspect(nodeId).
Attachments
[PATCH] Proposed Fix (6.51 KB, patch)
2017-09-07 13:52 PDT, Joseph Pecoraro
no flags
[PATCH] Proposed Fix (9.49 KB, patch)
2017-09-07 14:32 PDT, Joseph Pecoraro
no flags
Joseph Pecoraro
Comment 1 2017-09-07 13:46:36 PDT
Joseph Pecoraro
Comment 2 2017-09-07 13:52:16 PDT
Created attachment 320174 [details] [PATCH] Proposed Fix
Joseph Pecoraro
Comment 3 2017-09-07 13:58:58 PDT
Normally I am adamant about writing a test for all protocol changes, but interestingly this is a protocol method that WebKit doesn't implement, but an Augmented JSContext exercises via the generated ObjC API: @interface RWIProtocolDOMDomainEventDispatcher : NSObject - (void)inspectWithNodeId:(int)nodeId; ... @end I tested it manually. Maybe I can write a protocol test for this by supplying some kind of pre-canned response.
Joseph Pecoraro
Comment 4 2017-09-07 14:04:32 PDT
Comment on attachment 320174 [details] [PATCH] Proposed Fix Yeah, I think I can write a test!
Joseph Pecoraro
Comment 5 2017-09-07 14:32:56 PDT
Created attachment 320183 [details] [PATCH] Proposed Fix
Matt Baker
Comment 6 2017-09-07 14:46:33 PDT
Comment on attachment 320183 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=320183&action=review r=me > Source/WebInspectorUI/UserInterface/Base/Main.js:393 > + var activatedToolTip = WI.UIString("Stop element selection (%s)").format(WI._inspectModeKeyboardShortcut.displayName); let
Joseph Pecoraro
Comment 7 2017-09-07 14:52:58 PDT
Comment on attachment 320183 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=320183&action=review >> Source/WebInspectorUI/UserInterface/Base/Main.js:393 >> + var activatedToolTip = WI.UIString("Stop element selection (%s)").format(WI._inspectModeKeyboardShortcut.displayName); > > let Due to surrounding code this might actually cause an exception. It needs a more holistic var=>let conversion.
WebKit Commit Bot
Comment 8 2017-09-07 15:22:41 PDT
Comment on attachment 320183 [details] [PATCH] Proposed Fix Clearing flags on attachment: 320183 Committed r221765: <http://trac.webkit.org/changeset/221765>
WebKit Commit Bot
Comment 9 2017-09-07 15:22:43 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.