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

Issue 2917933002: [PasswordGeneration] Improve change/confirm password field detection. (Closed)

Created:
3 years, 6 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

[PasswordGeneration] Improve change/confirm password field detection. Use autocomplete attributes to discover change/confirm password fields when no PasswordFormGenerationData is found for a possible password form. BUG=716464 Review-Url: https://codereview.chromium.org/2917933002 Cr-Commit-Position: refs/heads/master@{#478250} Committed: https://chromium.googlesource.com/chromium/src/+/6121d9064193b5d9eef9092425909b4e6cec3bcb

Patch Set 1 #

Patch Set 2 : Clean up and fix test. #

Total comments: 9

Patch Set 3 : Address comments from dvadym@. #

Total comments: 10

Patch Set 4 : Address more comments. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -67 lines) Patch
M chrome/renderer/autofill/password_generation_agent_browsertest.cc View 1 2 3 3 chunks +23 lines, -11 lines 0 comments Download
M components/autofill/content/renderer/password_form_conversion_utils.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M components/autofill/content/renderer/password_form_conversion_utils.cc View 1 2 1 chunk +27 lines, -21 lines 6 comments Download
M components/autofill/content/renderer/password_generation_agent.cc View 1 2 8 chunks +60 lines, -34 lines 0 comments Download

Messages

Total messages: 37 (25 generated)
pkalinnikov
PTAL. Will add tests later.
3 years, 6 months ago (2017-06-06 16:25:36 UTC) #9
pkalinnikov
https://codereview.chromium.org/2917933002/diff/20001/components/autofill/content/renderer/password_generation_agent.cc File components/autofill/content/renderer/password_generation_agent.cc (right): https://codereview.chromium.org/2917933002/diff/20001/components/autofill/content/renderer/password_generation_agent.cc#newcode422 components/autofill/content/renderer/password_generation_agent.cc:422: password_elements = possible_form_data.password_elements; This line is equivalent to what ...
3 years, 6 months ago (2017-06-06 16:49:46 UTC) #10
dvadym
Thanks, it looks good. https://codereview.chromium.org/2917933002/diff/20001/components/autofill/content/renderer/password_generation_agent.cc File components/autofill/content/renderer/password_generation_agent.cc (right): https://codereview.chromium.org/2917933002/diff/20001/components/autofill/content/renderer/password_generation_agent.cc#newcode78 components/autofill/content/renderer/password_generation_agent.cc:78: std::vector<blink::WebInputElement> FindNewPasswordElementsForGeneration( It's not clear ...
3 years, 6 months ago (2017-06-07 17:16:43 UTC) #13
pkalinnikov
Addressed comments. https://codereview.chromium.org/2917933002/diff/20001/components/autofill/content/renderer/password_generation_agent.cc File components/autofill/content/renderer/password_generation_agent.cc (right): https://codereview.chromium.org/2917933002/diff/20001/components/autofill/content/renderer/password_generation_agent.cc#newcode78 components/autofill/content/renderer/password_generation_agent.cc:78: std::vector<blink::WebInputElement> FindNewPasswordElementsForGeneration( On 2017/06/07 17:16:43, dvadym wrote: ...
3 years, 6 months ago (2017-06-08 12:33:15 UTC) #20
dvadym
https://codereview.chromium.org/2917933002/diff/60001/chrome/renderer/autofill/password_generation_agent_browsertest.cc File chrome/renderer/autofill/password_generation_agent_browsertest.cc (right): https://codereview.chromium.org/2917933002/diff/60001/chrome/renderer/autofill/password_generation_agent_browsertest.cc#newcode611 chrome/renderer/autofill/password_generation_agent_browsertest.cc:611: // Only setting one of the two attributes doesn't ...
3 years, 6 months ago (2017-06-08 14:56:59 UTC) #23
pkalinnikov
https://codereview.chromium.org/2917933002/diff/60001/chrome/renderer/autofill/password_generation_agent_browsertest.cc File chrome/renderer/autofill/password_generation_agent_browsertest.cc (right): https://codereview.chromium.org/2917933002/diff/60001/chrome/renderer/autofill/password_generation_agent_browsertest.cc#newcode611 chrome/renderer/autofill/password_generation_agent_browsertest.cc:611: // Only setting one of the two attributes doesn't ...
3 years, 6 months ago (2017-06-09 08:02:43 UTC) #28
dvadym
Thanks for implementing this and making small speed refactorings! LGTM with small nits https://codereview.chromium.org/2917933002/diff/60001/components/autofill/content/renderer/password_form_conversion_utils.cc File ...
3 years, 6 months ago (2017-06-09 11:39:49 UTC) #29
pkalinnikov
Thanks. Leaving this as is (see comments). Maxim, do you want to take a final ...
3 years, 6 months ago (2017-06-09 11:53:23 UTC) #30
kolos1
On 2017/06/09 11:53:23, pkalinnikov wrote: > Thanks. Leaving this as is (see comments). > > ...
3 years, 6 months ago (2017-06-09 11:55:48 UTC) #31
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/2917933002/80001
3 years, 6 months ago (2017-06-09 11:56:27 UTC) #33
dvadym
https://codereview.chromium.org/2917933002/diff/80001/components/autofill/content/renderer/password_form_conversion_utils.cc File components/autofill/content/renderer/password_form_conversion_utils.cc (right): https://codereview.chromium.org/2917933002/diff/80001/components/autofill/content/renderer/password_form_conversion_utils.cc#newcode753 components/autofill/content/renderer/password_form_conversion_utils.cc:753: [value_in_lowercase](base::StringPiece token) { On 2017/06/09 11:53:23, pkalinnikov wrote: > ...
3 years, 6 months ago (2017-06-09 11:59:25 UTC) #34
commit-bot: I haz the power
3 years, 6 months ago (2017-06-09 12:01:13 UTC) #37
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/6121d9064193b5d9eef909242590...

Powered by Google App Engine
This is Rietveld 408576698