Bug 130302 - Web Inspector: AXI: AX Children exposes Shadow DOM nodes even when shadow DOM display is not enabled.
Summary: Web Inspector: AXI: AX Children exposes Shadow DOM nodes even when shadow DOM...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Aaron Chu
URL:
Keywords: InRadar
Depends on: 130264
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-16 01:38 PDT by James Craig
Modified: 2016-12-13 15:41 PST (History)
3 users (show)

See Also:


Attachments
screen shot lists child div of <input> when shadow DOM display is not toggled (172.77 KB, image/png)
2014-03-16 01:38 PDT, James Craig
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Craig 2014-03-16 01:38:21 PDT
Created attachment 226837 [details]
screen shot lists child div of <input> when shadow DOM display is not toggled

Web Inspector: AXI: AX Children exposes Shadow DOM nodes even when shadow DOM display is not enabled. Not yet sure if this is "right" or "wrong" but if we display this, we should probably make it more clear what's happening. Otherwise we should only display shadow DOM  AX children when the shadow DOM display is enabled.

See screen shot.
Comment 1 James Craig 2014-03-16 01:41:52 PDT
<rdar://problem/16337244>
Comment 2 Joseph Pecoraro 2014-03-17 11:00:43 PDT
Good find.

There is WebInspector.showShadowDOMSetting.value and node.isInShadowTree().

So you can choose to hide shadow nodes in the sidebar if the shadow DOM is not shown.

You can also add an event listener on the setting, to update the UI if the show shadow dom setting toggles:

    WebInspector.showShadowDOMSetting.addEventListener(WebInspector.Setting.Event.Changed, callback, thisObject);