Open Bug 1924699 Opened 2 years ago Updated 2 months ago

account.komoot.com - Saved email address not automatically filled in

Categories

(Toolkit :: Password Manager: Site Compatibility, defect)

Firefox 131
Desktop
Linux
defect

Tracking

()

ASSIGNED

People

(Reporter: rbucata, Assigned: aerilius, NeedInfo)

References

()

Details

(Whiteboard: [webcompat-source:web-bugs])

Attachments

(3 external files)

Environment:
Operating system: Ubuntu
Firefox version: Firefox 131.0

Steps to reproduce:
Komoot uses a multi-page login where the first page has only a formless email field without password field. Firefox's password manager dropdown does not appear, and the username is autocompleted. As a consequence, the user has to type the complete email.

Firefox supports multi-page logins only for certain heuristics, e.g. wrapped in a form, or autocomplete="username" without a form.

autocomplete="username" was fixed by https://bugzilla.mozilla.org/show_bug.cgi?id=1900009.

To solve the issue also for Komoot, autocomplete="email" should be added as well.

Actual Behavior:
Saved email address for Komoot login not automatically filled in

Notes:

  • Reproduces regardless of the status of ETP
  • Reproduces in Firefox Release
  • Does not reproduce in Firefox Nightly, and Chrome

Created from https://github.com/webcompat/web-bugs/issues/142787

The issue was reported via the webcompat.com reporter. Since the issue is related to Form-autofill, we have moved the issue. Please feel free to move the issue to the correct Product and Component.

Version: unspecified → Firefox 131
Component: Site Reports → Password Manager: Site Compatibility
Product: Web Compatibility → Toolkit
Assignee: nobody → aerilius
Status: NEW → ASSIGNED

I tried to implement a patch for my bug report, following the patch for issue 1900009.

This makes the password manager offer autocompletion of the username for accounts.komoot.com.

Summary of changes:

  • MaybeDispatchLoginManagerEvents: Notify password manager when inputs with autocomplete=username or autocomplete=email are encountered.
  • #isProbablyAUsernameLoginForm: Check also isProbablyAnEmailField
  • isInferredNonUsernameField: The regular expression was supposed to a detect a label "Add" as non-username input, but it also had a false-positive match for a label "Email address" which I would like to treat equal to username.
  • Added test cases for email&password (instead of username&password), parametrized existing tests for both autocomplete=username and autocomplete=email.

(Sorry for the multiple phabricator submissions, my VS Code/HG setup does not work flawlessly and some unwanted changes slipped through. I didn't figure out how to fixup or merge them into one.)

Is my approach an acceptable solution to this? One could also blame it on the websites who use autocomplete=email and ask them to change their logins to autocomplete=username. However, there does not seem to be a web standard for that and probably many websites use "email". In other browsers like Chrome, these websites still trigger the password manager as users would expect.

Are there any cases of email fields where we don't want to trigger the DOMPossibleUsernameInputAdded event? Still, the same heuristics as for username apply: no two email fields, not an email field followed by a non-password field.

The severity field is not set for this bug.
:mtigley, could you have a look please?

For more information, please visit BugBot documentation.

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

Attachment

General

Creator:
Created:
Updated:
Size: