Description[Password Manager] Fix password saving on Macys registration page
This requires a few changes to how we evaluate pages during the saving process.
1) Instead of ignoring forms where there are more than 3 password fields, assume that those fields are not related to actual passwords. Also change the case of 3 passwords to assume that if the first and second password match, that the third is not related. I don't have statistics on this, but I have seen security questions that are entered into password fields much more often than I have seen a new password entered before and old password (which was the previous assumption).
2) Move change password detection to work on the submitted password form instead of the observed form. The submitted form is more likely to be identified correctly because we have additional data after submission. This failed on Macy's because we incorrectly assume that, given the number of password fields, one of them is a current password field during parsing.
3) Don't require HTML field attributes to match for signup forms. This is normally required because otherwise we can't fill the password we have just saved. However in the case of signup forms this doesn't matter because we don't want to fill on the same form again anyway.
BUG=452306, 451631
Committed: https://crrev.com/33138a0083999ed6ca80ddf789756c25e6cac93a
Cr-Commit-Position: refs/heads/master@{#318850}
Patch Set 1 #Patch Set 2 : Tests #
Total comments: 14
Patch Set 3 : Comments #Patch Set 4 : Finish tests #
Total comments: 20
Patch Set 5 : Comments #Patch Set 6 : Comment #Messages
Total messages: 12 (3 generated)
|