Skip to content

[web] - Password managers can't autofill until after focusing on inputs due to lazy-loaded inputs #127694

Open

Description

@htoor3

On the web, password managers have the ability to autofill forms either automatically, or manually through context menus and their chrome extensions.

Currently, autofill via password managers in Flutter only work through context menus. This is because input elements are only created after being focused on in our current text editing system. This prevents password managers from filling out forms automatically or through their chrome extensions until after an input in the form is focused on.

One potential solution being explored to resolve this is #120613.

Activity

  1. added
    platform-webWeb applications specifically
    a: text inputEntering text in a text field or keyboard related problems
    on May 26, 2023
  2. added
    P2Important issues not at the top of the work list
    on Jun 1, 2023
  3. JaredEzz commented on Jun 22, 2023

    @JaredEzz

    Would this enable features like Bitwarden's new autofill keyboard shortcut (Cmd/Ctrl+Shift+L) ? I've had trouble using password managers on my flutter web app for over a year now. Would love to resolve them.

  4. crizant commented on Jul 25, 2023

    @crizant

    In my case, bitwarden won't autofill on web either with context menu or the extension from the top right hand corner.

  5. JaredEzz commented on Sep 6, 2023

    @JaredEzz

    flutter-team-archive/engine#42268 was part of the 3.13 stable patch notes listed here.

    Tested on stable 3.13 and bitwarden can autofill from the extension but no context menu shows up in the textfield

  6. htoor3 commented on Sep 6, 2023

    @htoor3
    ContributorAuthor

    @JaredEzz could you drop a screen recording of what you're seeing? Im trying it out on this app on both stable and master and seeing the same behavior as before: https://rexios80.github.io/flutter_autofill_test/stable/

    • Chrome autofills when it detects the inputs created in the DOM (on focus)
    • Bitwarden can then autofill the form in 3 ways: keyboard shortcut (cmd + shift + L), context menu, extension
    • Also inspecting the DOM tree confirms that the form inputs are being placed in the correct order (this bug is what was causing the majority of the issues with bitwarden)
    autofill.bitwarden.recording.mov
  7. JaredEzz commented on Sep 6, 2023

    @JaredEzz

    It all works for me now

  8. JaredEzz commented on Sep 6, 2023

    @JaredEzz

    Sorry for the confusion @htoor3

  9. htoor3 commented on Sep 6, 2023

    @htoor3
    ContributorAuthor

    no problem @JaredEzz! Let me know if you see any issues

  10. EccentricChameleon commented on Jul 19, 2024

    @EccentricChameleon

    Here's a complete list of the issues I'm getting with Bitwarden on the test page mentioned in this ticket (https://rexios80.github.io/flutter_autofill_test/stable/).
    I am using chrome on Windows 11 with the Bitwarden browser extension using the stable version on the test app.

    Anything that de-selects both textboxes always breaks the autofill, such as:

    • left clicking extension in toolbar
    • right clicking anywhere off the textbox then filling from dropdown
    • auto-fill hotkey (ctrl + shift + L) while no textbox is selected

    Anything that keeps the selection on either textbox always works, such as:

    • auto-fill hotkey (ctrl + shift + L) while selecting either textbox
    • right clicking on either textbox then filling from dropdown
    • selecting either textbox, right clicking Bitwarden in extension bar, then auto-filling from dropdown

    Pressing the popup is hit or miss:

    • commonly fills both
    • commonly only fills password
    • rarely does nothing (need to give it quite a few tries to see this behavior)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsplatform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions