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

Issue 2947403003: Prefer the exact match over prefix match for the password manager filling.

Created:
3 years, 6 months ago by melandory
Modified:
3 years, 6 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/heads/master
Project:
chromium
Visibility:
Public.

Description

Prefer the exact match over prefix match for the password manager filling. This CL addresses the following issue in username prefix matching: In the rare case the user saved two credentials: username / password1 username@example.com / password2 it may now happen that Chrome autofills password2 for username, creating an incompatible mix. We need to ensure that the exact match is always preferred. BUG=543435

Patch Set 1 #

Total comments: 1

Patch Set 2 : Prefer the exact match over prefix match. #

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

Depends on Patchset:

Messages

Total messages: 10 (5 generated)
melandory
PTAL, thanks!
3 years, 6 months ago (2017-06-22 14:02:17 UTC) #2
vabr (Chromium)
Thanks, Tanja, LGTM. Two comments, though: (1) Please change the CL title (just the first ...
3 years, 6 months ago (2017-06-22 14:25:28 UTC) #3
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/2947403003/20001
3 years, 6 months ago (2017-06-22 19:37:02 UTC) #7
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/485780)
3 years, 6 months ago (2017-06-22 20:14:59 UTC) #9
vabr (Chromium)
3 years, 6 months ago (2017-06-23 06:58:12 UTC) #10
https://codereview.chromium.org/2947403003/diff/20001/chrome/renderer/autofil...
File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right):

https://codereview.chromium.org/2947403003/diff/20001/chrome/renderer/autofil...
chrome/renderer/autofill/password_autofill_agent_browsertest.cc:776:
CheckTextFieldsState(UTF16ToUTF8(username2at_), false,
Yes, these two "false" should be "true" (we expect the fields to be marked as
autofilled). Sorry, I should have caught that yesterday.

Powered by Google App Engine
This is Rietveld 408576698