Open Bug 1616935 Opened 4 years ago Updated 2 years ago

Login context menu items don't work if there is a shadow root between the focused <input> and the root element

Categories

(Toolkit :: Password Manager, defect, P2)

defect

Tracking

()

People

(Reporter: MattN, Unassigned)

References

(Blocks 1 open bug, )

Details

FormLikeFactory.createFromField() does this.rootElement.querySelectorAll("input, select") which isn't compatible with ShadowDOM.

Example: The login context menu doesn't appear in the password field on https://interactive-examples.mdn.mozilla.net

We should probably assert if the focused input isn't in LoginForm.elements is the focused field is an eligible password field. Bug 1475869 would be ideal and most performant for us but it sounds like there is pushback on it. Otherwise we could maybe use a deep tree walker but I'm not sure of the performance impact.

Blocks: 1629226
No longer blocks: 1575361
See Also: 1475869
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.