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

Issue 2607413003: Add security feature to ProvisionalSavePassword (Closed)

Created:
3 years, 11 months ago by jdoerrie
Modified:
3 years, 11 months ago
CC:
chromium-reviews, vabr+watchlistpasswordmanager_chromium.org, rouslan+autofill_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add security feature to ProvisionalSavePassword Implement check against overriding provisional saved forms when the origin is the same but the scheme is insecure. Adds logging to understand how often this occurs. BUG=571580 Review-Url: https://codereview.chromium.org/2607413003 Cr-Commit-Position: refs/heads/master@{#443545} Committed: https://chromium.googlesource.com/chromium/src/+/4ed25061887ba8183010f4cdd800dff04bcdc794

Patch Set 1 #

Patch Set 2 : Almost Working Browser Test #

Total comments: 12

Patch Set 3 : Addressed comments. #

Total comments: 4

Patch Set 4 : Fix Test Failures #

Total comments: 7

Patch Set 5 : Address comments: Log to UMA, call WaitForPasswordStore() #

Total comments: 2

Patch Set 6 : Addressed next round of comments. #

Total comments: 1

Patch Set 7 : More explicit unittest, log origins, and update histogram description. #

Total comments: 20

Patch Set 8 : Addressed more comments. #

Patch Set 9 : XML Update #

Total comments: 1

Patch Set 10 : Remove now redundant lines. #

Total comments: 4

Patch Set 11 : Addressed nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -34 lines) Patch
M chrome/browser/password_manager/credential_manager_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +0 lines, -34 lines 0 comments Download
M chrome/browser/password_manager/password_manager_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +75 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_manager_test_base.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_manager_test_base.cc View 1 2 3 4 5 6 7 2 chunks +33 lines, -0 lines 0 comments Download
M components/autofill/core/common/save_password_progress_logger.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/common/save_password_progress_logger.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/browser_save_password_progress_logger.h View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/browser_save_password_progress_logger.cc View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager.h View 1 2 3 4 5 6 7 3 chunks +12 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager.cc View 1 2 3 4 5 6 2 chunks +20 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager_metrics_util.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager_metrics_util.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +103 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (28 generated)
jdoerrie
Hi all, this is a first draft of the proposed change to ProvisionalSavePassword. I would ...
3 years, 11 months ago (2017-01-04 16:55:18 UTC) #2
vasilii
https://codereview.chromium.org/2607413003/diff/20001/chrome/browser/password_manager/password_manager_browsertest.cc File chrome/browser/password_manager/password_manager_browsertest.cc (right): https://codereview.chromium.org/2607413003/diff/20001/chrome/browser/password_manager/password_manager_browsertest.cc#newcode1457 chrome/browser/password_manager/password_manager_browsertest.cc:1457: first_done_observer.SetPathToWaitFor("/password/done.html"); Looks like an unnecessary step. You can land ...
3 years, 11 months ago (2017-01-05 11:26:11 UTC) #3
jdoerrie
Dear both, PTAL :) dvadym@chromium.org: Please review changes in components/autofill/core/common/save_password_progress_logger.* https://codereview.chromium.org/2607413003/diff/20001/chrome/browser/password_manager/password_manager_browsertest.cc File chrome/browser/password_manager/password_manager_browsertest.cc (right): https://codereview.chromium.org/2607413003/diff/20001/chrome/browser/password_manager/password_manager_browsertest.cc#newcode1457 ...
3 years, 11 months ago (2017-01-05 18:11:30 UTC) #7
dvadym
What do you think about adding URLs in logging of this event? My feeling that ...
3 years, 11 months ago (2017-01-09 09:36:28 UTC) #12
vasilii
Please change the description to a non-draft version. The tracking bug is 571580. https://codereview.chromium.org/2607413003/diff/20001/chrome/browser/password_manager/password_manager_browsertest.cc File ...
3 years, 11 months ago (2017-01-09 14:16:56 UTC) #15
vasilii
https://codereview.chromium.org/2607413003/diff/60001/components/password_manager/core/browser/password_manager_unittest.cc File components/password_manager/core/browser/password_manager_unittest.cc (right): https://codereview.chromium.org/2607413003/diff/60001/components/password_manager/core/browser/password_manager_unittest.cc#newcode142 components/password_manager/core/browser/password_manager_unittest.cc:142: .WillByDefault(ReturnRef(GURL::EmptyGURL())); Why wasn't it required before? https://codereview.chromium.org/2607413003/diff/60001/components/password_manager/core/browser/password_manager_unittest.cc#newcode784 components/password_manager/core/browser/password_manager_unittest.cc:784: .WillOnce(WithArg<0>(SaveToScopedPtr(&form_manager_to_save))); ...
3 years, 11 months ago (2017-01-09 16:42:16 UTC) #16
jdoerrie
Please take another look :) https://codereview.chromium.org/2607413003/diff/60001/components/password_manager/core/browser/password_manager_unittest.cc File components/password_manager/core/browser/password_manager_unittest.cc (right): https://codereview.chromium.org/2607413003/diff/60001/components/password_manager/core/browser/password_manager_unittest.cc#newcode142 components/password_manager/core/browser/password_manager_unittest.cc:142: .WillByDefault(ReturnRef(GURL::EmptyGURL())); On 2017/01/09 16:42:16, ...
3 years, 11 months ago (2017-01-10 16:56:05 UTC) #18
jdoerrie
Please take another look :) https://codereview.chromium.org/2607413003/diff/60001/components/password_manager/core/browser/password_manager_unittest.cc File components/password_manager/core/browser/password_manager_unittest.cc (right): https://codereview.chromium.org/2607413003/diff/60001/components/password_manager/core/browser/password_manager_unittest.cc#newcode142 components/password_manager/core/browser/password_manager_unittest.cc:142: .WillByDefault(ReturnRef(GURL::EmptyGURL())); On 2017/01/09 16:42:16, ...
3 years, 11 months ago (2017-01-10 16:56:05 UTC) #19
vasilii
https://codereview.chromium.org/2607413003/diff/60001/components/password_manager/core/browser/password_manager_unittest.cc File components/password_manager/core/browser/password_manager_unittest.cc (right): https://codereview.chromium.org/2607413003/diff/60001/components/password_manager/core/browser/password_manager_unittest.cc#newcode784 components/password_manager/core/browser/password_manager_unittest.cc:784: .WillOnce(WithArg<0>(SaveToScopedPtr(&form_manager_to_save))); On 2017/01/10 16:56:05, jdoerrie wrote: > On 2017/01/09 ...
3 years, 11 months ago (2017-01-10 18:25:23 UTC) #24
dvadym
https://codereview.chromium.org/2607413003/diff/80001/components/password_manager/core/browser/password_manager.cc File components/password_manager/core/browser/password_manager.cc (right): https://codereview.chromium.org/2607413003/diff/80001/components/password_manager/core/browser/password_manager.cc#newcode282 components/password_manager/core/browser/password_manager.cc:282: Logger::STRING_BLOCK_PASSWORD_SAME_ORIGIN_INSECURE_SCHEME); What do you think about logging of urls ...
3 years, 11 months ago (2017-01-11 09:46:24 UTC) #25
jdoerrie
isherman, please review changes in histograms.xml https://codereview.chromium.org/2607413003/diff/60001/components/password_manager/core/browser/password_manager_unittest.cc File components/password_manager/core/browser/password_manager_unittest.cc (right): https://codereview.chromium.org/2607413003/diff/60001/components/password_manager/core/browser/password_manager_unittest.cc#newcode784 components/password_manager/core/browser/password_manager_unittest.cc:784: .WillOnce(WithArg<0>(SaveToScopedPtr(&form_manager_to_save))); On 2017/01/10 ...
3 years, 11 months ago (2017-01-11 17:26:37 UTC) #27
vasilii
https://codereview.chromium.org/2607413003/diff/60001/components/password_manager/core/browser/password_manager_unittest.cc File components/password_manager/core/browser/password_manager_unittest.cc (right): https://codereview.chromium.org/2607413003/diff/60001/components/password_manager/core/browser/password_manager_unittest.cc#newcode784 components/password_manager/core/browser/password_manager_unittest.cc:784: .WillOnce(WithArg<0>(SaveToScopedPtr(&form_manager_to_save))); On 2017/01/11 17:26:37, jdoerrie wrote: > On 2017/01/10 ...
3 years, 11 months ago (2017-01-11 19:42:56 UTC) #28
Ilya Sherman
Metrics LGTM though I'd suggest clarifying the metric's semantics by rewording the description. https://codereview.chromium.org/2607413003/diff/100001/tools/metrics/histograms/histograms.xml File ...
3 years, 11 months ago (2017-01-12 00:52:05 UTC) #29
jdoerrie
Dear all, please take another look.
3 years, 11 months ago (2017-01-12 10:57:51 UTC) #30
dvadym
logging LGTM
3 years, 11 months ago (2017-01-12 12:56:55 UTC) #31
vasilii
https://codereview.chromium.org/2607413003/diff/120001/chrome/browser/password_manager/credential_manager_browsertest.cc File chrome/browser/password_manager/credential_manager_browsertest.cc (right): https://codereview.chromium.org/2607413003/diff/120001/chrome/browser/password_manager/credential_manager_browsertest.cc#newcode36 chrome/browser/password_manager/credential_manager_browsertest.cc:36: void WaitForPasswordStore() { It's now unused. https://codereview.chromium.org/2607413003/diff/120001/chrome/browser/password_manager/password_manager_browsertest.cc File chrome/browser/password_manager/password_manager_browsertest.cc ...
3 years, 11 months ago (2017-01-12 14:59:21 UTC) #32
jdoerrie
https://codereview.chromium.org/2607413003/diff/120001/chrome/browser/password_manager/credential_manager_browsertest.cc File chrome/browser/password_manager/credential_manager_browsertest.cc (right): https://codereview.chromium.org/2607413003/diff/120001/chrome/browser/password_manager/credential_manager_browsertest.cc#newcode36 chrome/browser/password_manager/credential_manager_browsertest.cc:36: void WaitForPasswordStore() { On 2017/01/12 14:59:20, vasilii wrote: > ...
3 years, 11 months ago (2017-01-12 17:40:58 UTC) #33
vasilii
lgtm https://codereview.chromium.org/2607413003/diff/160001/components/password_manager/core/browser/password_manager_unittest.cc File components/password_manager/core/browser/password_manager_unittest.cc (right): https://codereview.chromium.org/2607413003/diff/160001/components/password_manager/core/browser/password_manager_unittest.cc#newcode851 components/password_manager/core/browser/password_manager_unittest.cc:851: form_manager_to_save->Save(); I think lines 849 and 851 aren't ...
3 years, 11 months ago (2017-01-12 17:56:23 UTC) #36
Ilya Sherman
Still LGTM, thanks. https://codereview.chromium.org/2607413003/diff/180001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2607413003/diff/180001/tools/metrics/histograms/histograms.xml#newcode44541 tools/metrics/histograms/histograms.xml:44541: + submission. The credential might proposed ...
3 years, 11 months ago (2017-01-12 20:35:10 UTC) #41
jdoerrie
https://codereview.chromium.org/2607413003/diff/180001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2607413003/diff/180001/tools/metrics/histograms/histograms.xml#newcode44541 tools/metrics/histograms/histograms.xml:44541: + submission. The credential might proposed to be saved, ...
3 years, 11 months ago (2017-01-13 08:37:45 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2607413003/200001
3 years, 11 months ago (2017-01-13 08:38:14 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/347827)
3 years, 11 months ago (2017-01-13 10:28:35 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2607413003/200001
3 years, 11 months ago (2017-01-13 12:32:25 UTC) #49
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 13:34:42 UTC) #52
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/4ed25061887ba8183010f4cdd800...

Powered by Google App Engine
This is Rietveld 408576698