Open Bug 1641942 Opened 6 months ago Updated 3 months ago

Form history suggestion dropdown now appears upon focus of username fields without saved logins

Categories

(Toolkit :: Password Manager, defect, P2)

73 Branch
defect

Tracking

()

Tracking Status
firefox76 --- wontfix
firefox77 --- wontfix
firefox78 --- wontfix

People

(Reporter: kabutotx, Unassigned)

References

(Regression, )

Details

(Keywords: regression)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0

Steps to reproduce:

Starting around v74 or so, Firefox started to pop up the input field selection on page load for sites that do a focus to the first input field. It didn't used to do this unless you did onClick().

Expected results:

Make drop down only for onClick() events or after typing letter(s).

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Layout: Form Controls
Product: Firefox → Core

I am not seeing this behavior. Do you have a URL for a page that exhibits this problem?

Flags: needinfo?(kabutotx)

https://github.com/login
It automatically drops down with my email address.
I think it is the autofocus. My company website had old javascript code to autofocus the login input box and it still did the same thing. I changed it to autofocus just to test but it still did it. Of course a single click toggles it on and off. Typing will limit the drop down. Just annoys me that it always pops up loading my admin site login. :)

Flags: needinfo?(kabutotx)

OK, mozregression tells me this changed as a result of bug 1388674. Matt, can you confirm whether showing the autocomplete popup when the field is focused but without any user interaction is the intended behavior here?

Flags: needinfo?(MattN+bmo)
Component: Layout: Form Controls → Autocomplete
Product: Core → Toolkit
Version: 76 Branch → 73 Branch

We didn't change the behaviour for <input> in general but I thought we already had this behaviour for login fields before then.

Are both of you referring to when there is a login saved (key icon beside the username) or just regular form history?

Component: Autocomplete → Form Manager
Summary: input suggestion dropdown now loads on page load due to focus → login suggestion dropdown now loads on page load due to focus

Regular from history. I have no saved logins.

OK, thanks. This wasn't intentional then.

One of the gFormFillService.showPopup(); calls in LoginManagerChild.jsm must now be getting hit.

Does the problem happen outside of login forms? I guess not?

Severity: -- → S3
Status: UNCONFIRMED → NEW
Has Regression Range: --- → yes
Has STR: --- → yes
Component: Form Manager → Password Manager
Ever confirmed: true
Flags: qe-verify+
Keywords: regression
Priority: -- → P2
Regressed by: 1388674
Summary: login suggestion dropdown now loads on page load due to focus → Form history suggestion dropdown now appears upon focus of username fields without saved logins

(In reply to Matthew N. [:MattN] from comment #7)

Does the problem happen outside of login forms? I guess not?

Seems not. Can reproduce with https://mcc.id.au/temp/login-form.html but not https://mcc.id.au/temp/non-login-form.html.

This is in our P2 list but it's unlikely I will personally fix this.

Flags: needinfo?(mozilla+bmo)
You need to log in before you can comment on or make changes to this bug.