Bug 1638587 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Based on the [`_onPasswordEditedOrGenerated`](https://searchfox.org/mozilla-central/rev/2c619e2a98d75c40a0aba2c19bb768659ac53860/toolkit/components/passwordmgr/LoginManagerParent.jsm#873) callback, a dismissed doorhanger should appear when:
* The user edits a password field (Bug 1536728)
* The user edits a username field (when a matching password field has already been filled)

(There may be other cases as well that I'm not aware of yet.)

Currently, for the two above cases the dismissed capture on edit doorhanger does not show when the username and password fields are each in their own shadow root (e.g. https://www.virustotal.com/gui/sign-in from Bug 1634819).

### Password field:

STR:
1. Go to https://www.virustotal.com/gui/sign-in
2. Enter some value(s) into the password field
3. Blur the field

Actual results:
There is no key icon in the URL bar.
This would, when clicked, open the dismissed login capture doorhanger.

Expected results:
There is a key icon in the URL bar.

### Username field:

STR:
Building off the STR for the password field:
1. With the password field non-empty from above, enter some value(s) into the username field
2. Blur the field

Actual results:
There is no key icon in the URL bar.

Expected results:
There is a key icon in the URL bar.
Based on the [`_onPasswordEditedOrGenerated`](https://searchfox.org/mozilla-central/rev/2c619e2a98d75c40a0aba2c19bb768659ac53860/toolkit/components/passwordmgr/LoginManagerParent.jsm#873) callback, a dismissed doorhanger should appear when:
* The user edits a password field (Bug 1536728)
* The user edits a username field (when a matching password field has already been filled)

(There may be other cases as well that I'm not aware of yet.)

Currently, for the two above cases the dismissed capture on edit doorhanger does not show when the username and password fields are each in their own shadow root (e.g. https://www.virustotal.com/gui/sign-in from Bug 1634819).

This bug is concerned with fixing the first case, when the password field is edited.

STR:
1. Go to https://www.virustotal.com/gui/sign-in
2. Enter some value(s) into the password field
3. Blur the field

Actual results:
There is no key icon in the URL bar.
This would, when clicked, open the dismissed login capture doorhanger.

Expected results:
There is a key icon in the URL bar.

Back to Bug 1638587 Comment 0