You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[web] - Password managers can't autofill until after focusing on inputs due to lazy-loaded inputs #127694
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.
Reacted by Tobias Marschall, AmirHossein Mohammadazadeh, Thiago Carvalho, Jared Ezzet Hasson, Taras Tataryn, Gameheld, msrd0, Jagmit Singh, David Miguel Lozano, Thomas Verbeek and 6 more
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.
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)
Activity
JaredEzz commentedon Jun 22, 2023
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.
crizant commentedon Jul 25, 2023
In my case, bitwarden won't autofill on web either with context menu or the extension from the top right hand corner.
JaredEzz commentedon Sep 6, 2023
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
htoor3 commentedon Sep 6, 2023
@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/
autofill.bitwarden.recording.mov
JaredEzz commentedon Sep 6, 2023
It all works for me now
JaredEzz commentedon Sep 6, 2023
Sorry for the confusion @htoor3
htoor3 commentedon Sep 6, 2023
no problem @JaredEzz! Let me know if you see any issues
EccentricChameleon commentedon Jul 19, 2024
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:
Anything that keeps the selection on either textbox always works, such as:
Pressing the popup is hit or miss: