Add a ChromeOnly method to access also closed shadow roots

NEW
Unassigned

Status

()

Core
DOM
P2
normal
2 months ago
28 days ago

People

(Reporter: smaug, Unassigned)

Tracking

(Blocks: 2 bugs)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 months ago
I'm pretty sure we'll want to have this for devtools and such.

Updated

2 months ago
Priority: -- → P2

Comment 1

28 days ago
Addons will need something like this too, otherwise websites would be able to hide pretty much all their content from addons. Addons would be forced to do some xray dances on document_start to intercept every |attachShadow| call and then implement custom shadow tree traversal over the intercepted roots if they wanted to handle with that.

If mozilla plans to use shadow dom for internal components too and those are not intended to by accessed by extensions then there might be a need for a 3-tier distinction:

- open
- closed (accessible by extensions)
- closed-chrome (only accessible by system principal)

Or maybe this can be covered by giving internal shadow trees different node principals than content-created shadow trees.
You need to log in before you can comment on or make changes to this bug.