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

Issue 2716873002: More robust fill password fields on click. (Closed)

Created:
3 years, 10 months ago by dvadym
Modified:
3 years, 9 months ago
Reviewers:
vabr (Chromium)
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/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

More robust fill password fields on click. Originally, Chrome would only offer suggestions for password fields, when no username were found. Since https://codereview.chromium.org/1814193002, it also offers suggestions when the user clicks on any password field. However, if JavaScript changes field names immediately after load, before password fill data reach the renderer, Chrome still fails to display suggestions. This CL changes PasswordAutofillAgent to use password field data even if fields names were changed. That allows Chrome to show suggestions even in the above mentioned problematic case. BUG=597304 Review-Url: https://codereview.chromium.org/2716873002 Cr-Commit-Position: refs/heads/master@{#453193} Committed: https://chromium.googlesource.com/chromium/src/+/a6ea9dfa43640a82f3c7d07da387d67d485db1c8

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -0 lines) Patch
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 chunk +21 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (12 generated)
dvadym
Hi Vaclav, Could you please review this CL? Regards, Vadym
3 years, 10 months ago (2017-02-24 14:20:07 UTC) #3
vabr (Chromium)
Hi Vadym, The code LGTM. I still think the CL description needs some work. It ...
3 years, 10 months ago (2017-02-24 20:10:37 UTC) #4
dvadym
Thanks Vaclav for review! I've addressed your comments https://codereview.chromium.org/2716873002/diff/1/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/2716873002/diff/1/components/autofill/content/renderer/password_autofill_agent.cc#newcode1444 components/autofill/content/renderer/password_autofill_agent.cc:1444: web_input_to_password_info_[blink::WebInputElement()] ...
3 years, 9 months ago (2017-02-27 10:14:29 UTC) #7
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/2716873002/20001
3 years, 9 months ago (2017-02-27 11:43:12 UTC) #14
commit-bot: I haz the power
3 years, 9 months ago (2017-02-27 11:48:42 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/a6ea9dfa43640a82f3c7d07da387...

Powered by Google App Engine
This is Rietveld 408576698