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

Issue 2682473002: Show Login Not Secure on username field even without Autocomplete attribute (Closed)

Created:
3 years, 10 months ago by elawrence
Modified:
3 years, 10 months ago
Reviewers:
sebsg, dvadym
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

Show Login Not Secure on all form fields if a password field is visible Previously, the "Login Not Secure" notice was only shown for fields in forms if the input type was Password or if the text field contained an AutoComplete="username" attribute. This change enhances the warning to show "Login Not Secure" notice for any text field in a form containing a visible password field. BUG=688612 TEST=Enable FNS, visit http://webdbg.com/test/forms/findlogins.htm Review-Url: https://codereview.chromium.org/2682473002 Cr-Commit-Position: refs/heads/master@{#451025} Committed: https://chromium.googlesource.com/chromium/src/+/e4310b09c5b49b6ce2825021919049704a8ff4a6

Patch Set 1 : Show warning on all fields #

Patch Set 2 : Add browser test #

Patch Set 3 : Remove now-unnecessary refactor #

Patch Set 4 : Show Login Not Secure warning only on password and username field #

Total comments: 1

Patch Set 5 : Add negative test for non-username field #

Patch Set 6 : Correct ordering of private fields #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -13 lines) Patch
M chrome/browser/password_manager/password_manager_browsertest.cc View 1 2 3 4 5 4 chunks +121 lines, -4 lines 0 comments Download
M chrome/test/data/password/password_form.html View 1 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 2 3 4 5 2 chunks +41 lines, -9 lines 0 comments Download

Messages

Total messages: 43 (26 generated)
elawrence
sebsg@chromium.org: Please review changes in components/autofill/ dvadym@chromium.org: Please review changes in chrome/browser/password_manager/ and chrome/test/data/password/password_form.html Thanks!
3 years, 10 months ago (2017-02-10 16:15:04 UTC) #11
dvadym
LGTM from password manager point of view, i.e. files components/autofill/content/renderer/password_autofill_agent.cc chrome/browser/password_manager/password_manager_browsertest.cc chrome/test/data/password/password_form.html Please keep in ...
3 years, 10 months ago (2017-02-10 16:35:47 UTC) #12
sebsg
The CVC is a important case like Vadym said. There are a bunch of sites ...
3 years, 10 months ago (2017-02-10 19:15:21 UTC) #13
sebsg
For example, you could get that information by checking the Type of a field in ...
3 years, 10 months ago (2017-02-10 19:48:38 UTC) #14
elawrence
> For example, you could get that information by checking the Type of a field ...
3 years, 10 months ago (2017-02-10 20:05:02 UTC) #15
elawrence
Oops, I meant CreatePasswordFormFromWebForm(), not GetPasswordFormFromWebForm(). Perhaps it would make sense to do a hybrid, ...
3 years, 10 months ago (2017-02-10 20:08:57 UTC) #16
elawrence
Okay, I've tried a different approach to this using the CreatePasswordFormFrom* functions. This seems to ...
3 years, 10 months ago (2017-02-10 22:23:46 UTC) #19
dvadym
On 2017/02/10 22:23:46, elawrence wrote: > Okay, I've tried a different approach to this using ...
3 years, 10 months ago (2017-02-13 16:52:11 UTC) #21
sebsg
LGTM % comment https://codereview.chromium.org/2682473002/diff/120001/chrome/browser/password_manager/password_manager_browsertest.cc File chrome/browser/password_manager/password_manager_browsertest.cc (right): https://codereview.chromium.org/2682473002/diff/120001/chrome/browser/password_manager/password_manager_browsertest.cc#newcode1868 chrome/browser/password_manager/password_manager_browsertest.cc:1868: } Can you add a test ...
3 years, 10 months ago (2017-02-13 18:53:56 UTC) #22
elawrence
> Can you add a test for when a user clicks on another field when ...
3 years, 10 months ago (2017-02-15 21:26:00 UTC) #23
sebsg
Nice, thanks for adding this. LGTM
3 years, 10 months ago (2017-02-15 21:28:34 UTC) #24
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/2682473002/130001
3 years, 10 months ago (2017-02-15 21:35:02 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/389223)
3 years, 10 months ago (2017-02-15 22:24:46 UTC) #29
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/2682473002/150001
3 years, 10 months ago (2017-02-16 02:15:36 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/391180)
3 years, 10 months ago (2017-02-16 04:08:03 UTC) #38
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/2682473002/150001
3 years, 10 months ago (2017-02-16 18:40:33 UTC) #40
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 18:48:09 UTC) #43
Message was sent while issue was closed.
Committed patchset #6 (id:150001) as
https://chromium.googlesource.com/chromium/src/+/e4310b09c5b49b6ce28250219190...

Powered by Google App Engine
This is Rietveld 408576698