Closed Bug 1657989 Opened 4 years ago Closed 4 years ago

Expose the set of ShadowRoots for a document to chrome-privileged JavaScript

Categories

(Core :: DOM: Core & HTML, enhancement, P2)

Firefox 81
enhancement

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: bdanforth, Assigned: emilio)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The Password Manager currently does not detect login forms when HTMLInputElements are in ShadowRoots, and we have an effort underway to fix that (Bug 1629226) for Q3 2020 and probably beyond.

After talking with Emilio, I learned that there is a set of ShadowRoots for a document that could be exposed to chrome-privileged JavaScript. This would greatly simplify our efforts as well as provide much better performance, as the alternative is to walk the DOM and find each ShadowRoot ourselves.

My understanding is that the patch would be relatively straightforward.

Flags: needinfo?(emilio)
Blocks: 1629226
Assignee: nobody → emilio
Flags: needinfo?(emilio)

Seems it's going to be useful for autofill / password-manager.

Severity: -- → N/A
Priority: -- → P2
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bd1155a994a2
Expose Document::mComposedShadowRoots to front-end code. r=smaug
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: