Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Issue 944163003: [Password Manager] Fix password saving on Macys registration page (Closed)

Created:
5 years, 10 months ago by Garrett Casto
Modified:
5 years, 9 months ago
Reviewers:
vabr (Chromium), dvadym
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, browser-components-watch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, rouslan+autofillwatch_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -70 lines) Patch
M chrome/browser/password_manager/password_manager_browsertest.cc View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/test/data/password/many_password_signup_form.html View 1 1 chunk +13 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/password_form_conversion_utils.cc View 3 chunks +7 lines, -6 lines 0 comments Download
M components/autofill/content/renderer/password_form_conversion_utils_browsertest.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M components/autofill/core/common/save_password_progress_logger.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/common/save_password_progress_logger.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager.h View 1 2 3 4 2 chunks +18 lines, -16 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager.cc View 1 2 2 chunks +13 lines, -10 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager_unittest.cc View 1 2 10 chunks +40 lines, -34 lines 0 comments Download
M components/password_manager/core/browser/password_manager.cc View 1 2 3 4 5 5 chunks +23 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/password_manager_unittest.cc View 1 2 3 4 1 chunk +100 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
Garrett Casto
One issue in this change is that it makes it possible for a signup form ...
5 years, 10 months ago (2015-02-25 01:10:17 UTC) #2
vabr (Chromium)
This LGTM so far, but you have a non-trivial conflict in rebasing to ToT ahead. ...
5 years, 10 months ago (2015-02-25 10:21:15 UTC) #3
Garrett Casto
I think that the scenario that you outlined is pretty unlikely. We would need to ...
5 years, 10 months ago (2015-02-26 07:11:02 UTC) #4
vabr (Chromium)
LGTM! You are right that my previous scenario is unlikely, I guess I forgot about ...
5 years, 10 months ago (2015-02-26 08:54:48 UTC) #5
Garrett Casto
https://codereview.chromium.org/944163003/diff/60001/components/password_manager/core/browser/password_form_manager.h File components/password_manager/core/browser/password_form_manager.h (right): https://codereview.chromium.org/944163003/diff/60001/components/password_manager/core/browser/password_form_manager.h#newcode46 components/password_manager/core/browser/password_form_manager.h:46: // prefered than lower matches. On 2015/02/26 08:54:47, vabr ...
5 years, 10 months ago (2015-02-27 01:12:33 UTC) #6
vabr (Chromium)
Still LGTM. Cheers, Vaclav https://codereview.chromium.org/944163003/diff/60001/components/password_manager/core/browser/password_manager.cc File components/password_manager/core/browser/password_manager.cc (right): https://codereview.chromium.org/944163003/diff/60001/components/password_manager/core/browser/password_manager.cc#newcode264 components/password_manager/core/browser/password_manager.cc:264: ~PasswordFormManager::RESULT_ACTION_MATCH)) { On 2015/02/27 01:12:32, ...
5 years, 9 months ago (2015-03-02 13:23:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/944163003/100001
5 years, 9 months ago (2015-03-03 06:43:25 UTC) #10
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-03 07:43:35 UTC) #11
commit-bot: I haz the power
5 years, 9 months ago (2015-03-03 07:44:19 UTC) #12
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/33138a0083999ed6ca80ddf789756c25e6cac93a
Cr-Commit-Position: refs/heads/master@{#318850}

Powered by Google App Engine
This is Rietveld 408576698