Open Bug 1138774 Opened 6 years ago Updated 2 years ago

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


(Toolkit :: Password Manager, defect, P3)





(Reporter: MattN, Unassigned)



(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
You need to log in before you can comment on or make changes to this bug.