Password Autofill does not fill usernames on some websites (Fennec and GV)
Categories
(GeckoView :: General, defect, P1)
Tracking
(firefox66 wontfix, firefox67 wontfix, firefox68 verified)
People
(Reporter: callahad, Assigned: m_kato)
Details
(Whiteboard: [geckoview:fenix:m4] [bcs:p2])
Attachments
(2 files)
I've noticed that Fenix and Reference Browser do not fill the username when using Android's password autofill feature on some websites.
In my case, I'm seeing this with Bitwarden on the Aviva insurance site (MoCo's insurer for UK-based employees).
Steps to Reproduce:
- Create an entry in your password manager for https://www.direct.aviva.co.uk/MyAccount/login
- Visit the above URL
- Tap the password field
- Tap the "Auto-fill with Bitwarden" pop-up
- Select the entry in the password manager
(You might have to manually search for the correct entry, see Bug 1538385)
Results:
- Only the password is filled; the username remains blank
The same steps in Chrome work as expected, filling both the username and password fields.
Assignee | ||
Comment 1•5 years ago
|
||
Does this occurs on Firefox/Android Nightly too? Actually, username detection uses same module of Desktop Firefox. So if its module cannot detect username field, we don't set username hint for autofill framework.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 3•5 years ago
|
||
67=wontfix. Fenix MVP will use GeckoView 68, so we don't need to uplift this fix to 67 Beta.
Assignee | ||
Updated•5 years ago
|
Comment 4•5 years ago
|
||
Makoto, thanks for taking this bug. Since this bug also affects Fennec, we might want to uplift the fix to Fennec 67 Beta if the fix is small.
Assignee | ||
Comment 5•5 years ago
|
||
Hmm, this input element has autocomplete="off"
attribute.
<input aria-required="True" autocomplete="off" class="a-textbox" data-val="true" data-val-required="Please enter your username" id="username" maxlength="50" name="username" type="text" value="">
So LoginManagerContent.getUserNameAndPasswordFields
doesn't detect user name field since it will respect autocomplete
attribute (bug 917325). From https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete,
When an element's autofill field name is "off", the user agent should not remember the control's data, and should not offer past values to the user.
So I think that this is correct as UA. but should we ignore it?
Assignee | ||
Comment 6•5 years ago
|
||
But autocomplete=off may be ignore on desktop firefox since this site works even if desktop. So we may be able to ignore it.
Assignee | ||
Comment 7•5 years ago
|
||
Update this junit test with this bug's test case. Actually, autofill_userpass
doesn't work with the latest GV, so I should like to update this to fix focus
timing.
Also, this does't run on our test infra because this requires API 26.
Assignee | ||
Comment 8•5 years ago
|
||
Comment 9•5 years ago
|
||
Hi, I, tested the above mentioned issue using a Google Pixel 3XL(Android 9) with the latest Nightly version 68.0a1 along with the Bitwarden app and learned the following :
Twitter login- after tapping the autofill notification nothing happened. I had to manually fill in the username tap again the notification and afterwards the password got automatically filled in
Yahoo login- Same as for Twitter, after tapping the autofill notification nothing happened. I had to manually fill in the username and after a couple of attempts (refresh + notification tap) the password got automatically filled in.
Gmail login- After tapping the autofill notification nothing happened, I've refreshed the tapped again the notification and it worked as expected
Notes: I've also tried using the LastPass app and worked properly.
I've also noticed that the LastPass app has an extra Android settings option, namely the possibility to enable the "Display over other apps".
Thanks,
Andi
Comment 10•5 years ago
|
||
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/b0c3aa221224 Part 1. LoginManagerContent requires <input> or <input type="password"> element to recognize login form r=geckoview-reviewers,snorp https://hg.mozilla.org/integration/autoland/rev/84191877561e Part 2. Update tests that includes fieldset r=geckoview-reviewers,snorp
Updated•5 years ago
|
Comment 11•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b0c3aa221224
https://hg.mozilla.org/mozilla-central/rev/84191877561e
Comment 12•5 years ago
|
||
67=wontfix because it's too late to uplift a fix to Fennec 67 Beta that hasn't baked on 68 Nightly. This is a longstanding Fennec bug, so letting the fix ride the trains with 68 shouldn't be a big problem.
Comment 13•5 years ago
|
||
Hi, as per Comment #9 I've retested this issue on the latest Nightly build using a Google Pixel 3XL (Android 9) and a Samsung Note9 (Android 8.1.0) and on both devices the auto fill worked properly for all the three web sites.
Based on the above, the fix is verified.
Thanks,
Andi
Description
•