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

Issue 2902113004: Autofill username when the user interacts with the password field. (Closed)

Created:
3 years, 7 months ago by pkalinnikov
Modified:
3 years, 6 months ago
Reviewers:
dvadym, kolos1
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, vabr+watchlistpasswordmanager_chromium.org, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, darin-cc_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Autofill username when the user interacts with the password field. Previously, when the user clicked on a password field, only this field was autocompleted with their password. This CL ensures that the username field is autocompleted as well. If the user interacts with a password field then the username is filled only if it was empty or *autofilled*, i.e. the user-supplied data is never overridden. Note that this works only if the username field was found. BUG=710374, 708605, 708602 Review-Url: https://codereview.chromium.org/2902113004 Cr-Commit-Position: refs/heads/master@{#475329} Committed: https://chromium.googlesource.com/chromium/src/+/97b7f62478df1974a2742137afe572f3621464af

Patch Set 1 #

Total comments: 9

Patch Set 2 : Rebase; address comments; refactor tests. #

Patch Set 3 : Rebase. #

Total comments: 14

Patch Set 4 : Address comments from kolos@. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -207 lines) Patch
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 2 3 11 chunks +240 lines, -202 lines 2 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 2 4 chunks +20 lines, -5 lines 0 comments Download

Messages

Total messages: 26 (17 generated)
pkalinnikov
Vadym, Maxim, PTAL. This CL comes instead of crrev/2889393002. It solves the very issue of ...
3 years, 7 months ago (2017-05-24 10:43:31 UTC) #4
pkalinnikov
PTAL at patch set #2. https://codereview.chromium.org/2902113004/diff/1/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/2902113004/diff/1/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode1165 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:1165: // Try Filling with ...
3 years, 7 months ago (2017-05-24 13:54:36 UTC) #9
dvadym
LGTM thanks for extensive testing and test improvements!
3 years, 7 months ago (2017-05-24 14:07:09 UTC) #10
kolos1
LGTM. Thanks Pavel for going far beyond the supposed fix. https://codereview.chromium.org/2902113004/diff/30001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/2902113004/diff/30001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode452 ...
3 years, 6 months ago (2017-05-26 12:09:11 UTC) #13
pkalinnikov
Thanks for the comments. Maxim, can you take a final look? https://codereview.chromium.org/2902113004/diff/30001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): ...
3 years, 6 months ago (2017-05-26 16:36:52 UTC) #15
kolos1
LGTM. Thx Pavel! https://codereview.chromium.org/2902113004/diff/30001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/2902113004/diff/30001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode1210 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:1210: for (const auto& element : {username_element_, ...
3 years, 6 months ago (2017-05-29 09:17:11 UTC) #19
pkalinnikov
https://codereview.chromium.org/2902113004/diff/50001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/2902113004/diff/50001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode1204 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:1204: // Try Filling with a different password. Only password ...
3 years, 6 months ago (2017-05-29 09:20:45 UTC) #20
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/2902113004/50001
3 years, 6 months ago (2017-05-29 09:21:17 UTC) #23
commit-bot: I haz the power
3 years, 6 months ago (2017-05-29 10:13:18 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:50001) as
https://chromium.googlesource.com/chromium/src/+/97b7f62478df1974a2742137afe5...

Powered by Google App Engine
This is Rietveld 408576698