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

Issue 2236413002: Remove PasswordAutofillAgent::TextFieldDidEndEditing (Closed)

Created:
4 years, 4 months ago by vabr (Chromium)
Modified:
4 years, 4 months ago
Reviewers:
dvadym
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, vabr+watchlistpasswordmanager_chromium.org, rouslan+autofill_chromium.org, jam, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org, darin-cc_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove PasswordAutofillAgent::TextFieldDidEndEditing PasswordAutofillAgent::TextFieldDidEndEditing provided special handling for situations when automatic filling was blocked (Incognito, PSL-matched credentials, etc.): in those cases, when the user filled the username to match some of the fillable credentials, that credential was filled even though the user did not select a fill suggestion. It is no longer clear what was the motivation for this behaviour. The code has been like this before it was ported from WebKit in 2010. It seems unnecessary, a little unexpected, and leads to a bug when a page can trigger autofill of credentials with empty usernames in cases where they should not be autofilled (e.g., Incognito). Therefore, this CL removes PasswordAutofillAgent::TextFieldDidEndEditing and the associated functionality: credentials are now only filled when the user selects a suggestion (or when the credentials are fit for automatic filling). R=dvadym@chromium.org BUG=636461 Committed: https://crrev.com/36c4ef576660b52e1a5750b313ae3031ea1b4e81 Cr-Commit-Position: refs/heads/master@{#411335}

Patch Set 1 #

Patch Set 2 : Improved one test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -81 lines) Patch
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 5 chunks +12 lines, -42 lines 0 comments Download
M components/autofill/content/renderer/autofill_agent.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 2 chunks +0 lines, -37 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
vabr (Chromium)
Hi Vadym, PTAL. Thanks! Vaclav
4 years, 4 months ago (2016-08-11 14:54:39 UTC) #3
dvadym
LGTM, thanks for fixing this
4 years, 4 months ago (2016-08-11 14:56:24 UTC) #6
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/2236413002/20001
4 years, 4 months ago (2016-08-11 15:19:04 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-11 15:23:06 UTC) #9
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 15:26:26 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/36c4ef576660b52e1a5750b313ae3031ea1b4e81
Cr-Commit-Position: refs/heads/master@{#411335}

Powered by Google App Engine
This is Rietveld 408576698