-
Notifications
You must be signed in to change notification settings - Fork 6k
[web] - Fix autofill group input ordering #42268
Conversation
mdebbar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for fixing this!
Once tests are added, please re-ping me for re-review.
mdebbar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…127698) flutter/engine@84f2fc1...ec7b0ae 2023-05-26 [email protected] Checkout android and emsdk deps in linux. (flutter/engine#42339) 2023-05-26 [email protected] [web] - Fix autofill group input ordering (flutter/engine#42268) 2023-05-26 [email protected] Roll Skia from 1622df035714 to ac897edeb16a (1 revision) (flutter/engine#42348) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
|
Is there a good way to know when this would be rolled into stable or hotfixed? I tried to view on https://flutter-dashboard.appspot.com/#/build but it was a bit confusing |
|
Thanks for the fix. Has this been reverted? It works in beta channel for |
|
Tested on stable 3.13 and bitwarden can autofill from the extension but no context menu shows up in the textfield |

Ordering of input elements inside of the DOM tree for autofill groups does not reflect the order of the form rendered on screen. This is causing some issues with password managers and autofill, specifically Bitwarden.
We are currently always appending the currently focused input element to the end of the form.
This leads to a tree that appears out of order:

This fix is tracking the position of where the focused input node should be inserted and inserting it there, rather than always at the end of the form. Once the tree is ordered correctly, Bitwarden's autofill logic works in Flutter forms.
Tree order after fix:

Fixes flutter/flutter#61301
Fixes flutter/flutter#68005
Pre-launch Checklist
///).