The toggle for this setting has a prominent spot in the Elements tab, but if overlooked, empty Shadow DOM host nodes in the tree could give the impression that something is wrong or missing.
Shadow DOM host nodes will initially be collapsed in the DOM tree, so there shouldn't be a downside to enabling this by default.
Created attachment 372686 [details]
I'm fine with this, as I always have Shadow DOM enabled.
@rniwa (Ryosuke) or @joepeck (Joe) or @xenon (Tim) is there a reason we wouldn't want to do this?
Comment on attachment 372686 [details]
Clearing flags on attachment: 372686
Committed r246821: <https://trac.webkit.org/changeset/246821>
All reviewed patches have been landed. Closing bug.
(In reply to Devin Rousso from comment #3)
> I'm fine with this, as I always have Shadow DOM enabled.
> @rniwa (Ryosuke) or @joepeck (Joe) or @xenon (Tim) is there a reason we
> wouldn't want to do this?
I copied Ryosuke on the bug, since he is the domain expert. I think we should consider whether this warrants a toggle at all, and if it does, whether it needs to have such a prominent location (Elements tab navigation bar).
I appreciate that shadow DOM is inherently an encapsulation mechanism, and as such it makes sense to hide the implementation details. That said, maybe it makes more sense to put this toggle in the Settings tab.