Better way of detecting form inputs and submissions
One of the main issues I’ve had with bitwarden ever since I started using it, is how rare it is for the login auto save feature to actually work. On most sites, including major ones like Google, the notification bar never pops up, so you have to manually remember to add every login. Sometimes the notification bar also disappears when the page refreshes.
I decided to try and fix this, and have come up with new code to detect forms and fields, which in my testing has worked flawlessly when compared to other managers like Lastpass and Dashlane. The only current major problem is forms that aren’t under an actual form element, such as Aliexpress’s login modal. These forms are still detected and the passwords saved, but the input detection fails.
The only thing missing now is to improve the notification bar itself, my plan is to make it a small modal in the corner that allows for reviewing and editing, which comes in handy for forms where the wrong input is detected (i.e. detects email but username is used for login), or miss some data.
I’ve also been thinking of using the new improved input detection (which can distinguish a simple password field from a new password one, for example) to add a small icon next to each input, similar to other manages, that allow for easier access to autofill and password generation. There have been many requests for this, and it would of course be toggleable, just like the current detection and notification bar.
None of the actual autofilling code has been touched, so there should be nothing to worry about that.
Edit: First PR is up at Improve form submission detection by fuwwy · Pull Request #2066 · bitwarden/browser (github.com)