Closed Bug 1138774 Opened 9 years ago Closed 9 months ago

Figure out desired behaviour when a username field is blurred without Tab/Enter (e.g. with the mouse)

Categories

(Toolkit :: Password Manager, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: MattN, Unassigned)

References

Details

(Keywords: regression, Whiteboard: [passwords:fill-ui])

Since the blur event doesn't bubble, our code in content.js that listens for "blur" events will never get hit:
> addEventListener("blur", function(event) {
>   LoginManagerContent.onUsernameInput(event);
> });

This means that if you have multiple logins saved for a site and blur the username field with your mouse without clicking on an autocomplete entry while one of your saved usernames is entered, the password field doesn't get filled with the matching password.

This may or may not be wanted as I think it is a regression but on the other hand it could be slightly better for security, especially since a page can set .value and call .focus() on the username field itself. We should figure out the desired UX for this interaction and then deal with the dead code.

I think this could be related to bug 1048041.
Flags: firefox-backlog+
Whiteboard: [passwords:fill-ui]
Depends on: 1529700
No longer depends on: 1529700
Priority: -- → P3
Severity: normal → S3

Doesn't look like we have this problem in 2023.

Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.