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

Issue 414013003: Password autofill should not override explicitly typed password (Closed)

Created:
6 years, 5 months ago by vabr (Chromium)
Modified:
6 years, 3 months ago
Reviewers:
engedy, Garrett Casto
CC:
chromium-reviews, benquan, jam, browser-components-watch_chromium.org, darin-cc_chromium.org, Dane Wallinga, dyu1, rouslan+autofillwatch_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, Ilya Sherman, mkwst+watchlist_chromium.org
Project:
chromium
Visibility:
Public.

Description

Password autofill should not override explicitly typed password Imagine the following: (1) A user types a username, which matches saved credentials, so the password is autofilled. (2) The user overwrites the suggested password in the password field. (3) The user enters the username field again, but leaves it without changes. Currently, the autofilled password after step 3 replaces the user-typed password from step 2. This CL makes sure, that the password from step 2 stays. BUG=385619 Committed: https://crrev.com/d7b0f8c76f05dcb04523e68cf8b1258f85e7c417 Cr-Commit-Position: refs/heads/master@{#291938}

Patch Set 1 #

Patch Set 2 : Fix compilation #

Patch Set 3 : Don't give up autocompletion completely #

Total comments: 4

Patch Set 4 : set->bit in PasswordInfo #

Patch Set 5 : Removed unused #includes #

Total comments: 5

Patch Set 6 : Change all the signatures #

Patch Set 7 : Rebased on ToT #

Patch Set 8 : Further corrections #

Total comments: 8

Patch Set 9 : Just rebased #

Patch Set 10 : Comments addressed #

Total comments: 20

Patch Set 11 : Just rebased #

Patch Set 12 : Comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -52 lines) Patch
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +86 lines, -23 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +11 lines, -5 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 2 3 4 5 6 7 8 9 10 11 14 chunks +46 lines, -24 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
vabr (Chromium)
Balázs, PTAL. Garrett, Does the change in behaviour in the CL description sound good to ...
6 years, 5 months ago (2014-07-24 13:47:02 UTC) #1
Garrett Casto
On 2014/07/24 13:47:02, vabr (Chromium) wrote: > Balázs, PTAL. > > Garrett, > Does the ...
6 years, 5 months ago (2014-07-24 21:17:11 UTC) #2
vabr (Chromium)
On 2014/07/24 21:17:11, Garrett Casto wrote: > On 2014/07/24 13:47:02, vabr (Chromium) wrote: > > ...
6 years, 5 months ago (2014-07-25 13:14:10 UTC) #3
vabr (Chromium)
Hi Balázs, A friendly ping about this review. Thanks! Vaclav
6 years, 4 months ago (2014-07-28 11:29:39 UTC) #4
engedy
On 2014/07/28 11:29:39, vabr (Chromium) wrote: > Hi Balázs, > > A friendly ping about ...
6 years, 4 months ago (2014-07-28 12:42:30 UTC) #5
vabr (Chromium)
Thanks, Balázs. I softened the change, PTAL. Cheers, Vaclav
6 years, 4 months ago (2014-07-29 10:32:05 UTC) #6
engedy
https://codereview.chromium.org/414013003/diff/60001/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/414013003/diff/60001/components/autofill/content/renderer/password_autofill_agent.cc#newcode939 components/autofill/content/renderer/password_autofill_agent.cc:939: if (ContainsKey(temporary_disabled_password_fill_, *username_element)) As discussed offline, many of these ...
6 years, 4 months ago (2014-07-29 14:43:55 UTC) #7
vabr (Chromium)
Thanks, Balázs, PTAL. Cheers, Vaclav https://codereview.chromium.org/414013003/diff/60001/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/414013003/diff/60001/components/autofill/content/renderer/password_autofill_agent.cc#newcode939 components/autofill/content/renderer/password_autofill_agent.cc:939: if (ContainsKey(temporary_disabled_password_fill_, *username_element)) On ...
6 years, 4 months ago (2014-07-29 15:12:30 UTC) #8
engedy
https://codereview.chromium.org/414013003/diff/100001/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/414013003/diff/100001/components/autofill/content/renderer/password_autofill_agent.cc#newcode276 components/autofill/content/renderer/password_autofill_agent.cc:276: if (!element->isNull() && element->value().isNull() && Could you please double-check ...
6 years, 4 months ago (2014-07-29 17:47:56 UTC) #9
vabr (Chromium)
Hi Balázs, Could you PTAL? Sorry that this CL got substantially bigger -- addressing your ...
6 years, 4 months ago (2014-07-30 16:46:59 UTC) #10
engedy
https://codereview.chromium.org/414013003/diff/160001/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/414013003/diff/160001/components/autofill/content/renderer/password_autofill_agent.cc#newcode270 components/autofill/content/renderer/password_autofill_agent.cc:270: if (!(*it)->wait_for_username_change) I would suggest keeping this logic out ...
6 years, 4 months ago (2014-07-31 17:14:47 UTC) #11
vabr (Chromium)
Thanks, Balázs, For your comments, and fruitful discussion last week. Once you are back, PTAL. ...
6 years, 4 months ago (2014-08-04 15:10:07 UTC) #12
vabr (Chromium)
Hi Balázs, A gentle ping. Thanks! Vaclav
6 years, 4 months ago (2014-08-06 07:54:29 UTC) #13
engedy
On 2014/08/06 07:54:29, vabr (Chromium) wrote: > Hi Balázs, > > A gentle ping. > ...
6 years, 4 months ago (2014-08-06 09:09:46 UTC) #14
engedy
LGTM modulo comments. https://codereview.chromium.org/414013003/diff/200001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/414013003/diff/200001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode1570 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:1570: // test checks that the overwritten ...
6 years, 4 months ago (2014-08-06 10:18:17 UTC) #15
vabr (Chromium)
Thanks for your review, Balázs. I addressed all your comments, in a straightforward way. Given ...
6 years, 4 months ago (2014-08-25 14:53:30 UTC) #16
vabr (Chromium)
The CQ bit was checked by vabr@chromium.org
6 years, 4 months ago (2014-08-25 14:53:36 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/414013003/240001
6 years, 4 months ago (2014-08-25 14:54:03 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-25 15:51:11 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-25 15:53:26 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/6373)
6 years, 4 months ago (2014-08-25 15:53:28 UTC) #21
vabr (Chromium)
Garrett, Could you please do an OWNERS rubberstamp? Cheers, Vaclav
6 years, 4 months ago (2014-08-26 08:59:02 UTC) #22
Garrett Casto
The CQ bit was checked by gcasto@chromium.org
6 years, 3 months ago (2014-08-26 17:58:22 UTC) #23
Garrett Casto
lgtm
6 years, 3 months ago (2014-08-26 17:58:23 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/414013003/240001
6 years, 3 months ago (2014-08-26 18:00:54 UTC) #25
commit-bot: I haz the power
Committed patchset #12 (240001) as bbb03f1c6a4ff97ad0c27d12db399dd30c55ba11
6 years, 3 months ago (2014-08-26 18:09:29 UTC) #26
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:43:59 UTC) #27
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/d7b0f8c76f05dcb04523e68cf8b1258f85e7c417
Cr-Commit-Position: refs/heads/master@{#291938}

Powered by Google App Engine
This is Rietveld 408576698