Recognise first hinted new-password field
The FormData -> PasswordForm parser can see multiple hints from the server that a field is a new-password field. In particular, this happens if those fields have the same signature. The parser only can choose one new-parser field, and on that field, password generation is offered. If this is any other than the first field, the user has likely already thought of and typed their new password elsewhere. Therefore, this CL makes sure that the first hinted new-password field is marked as such by the parser. Bug: 902700 Change-Id: Idb065e7391526036347feb586b2a702d74f431a9 Reviewed-on: https://chromium-review.googlesource.com/c/1325986Reviewed-by:Dominic Battré <battre@chromium.org> Commit-Queue: Vaclav Brozek <vabr@chromium.org> Cr-Commit-Position: refs/heads/master@{#606430}
Showing
Please register or sign in to comment