Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Issue 166043006: Add password manager autocomplete suggestion when a username element in clicked. (Closed)

Created:
6 years, 10 months ago by jww
Modified:
6 years, 5 months ago
CC:
chromium-reviews, benquan, jam, browser-components-watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org, rolfe
Visibility:
Public.

Description

Add password manager autocomplete suggestion when a username element in clicked. This adds a full credential selection whenever a username element is clicked. Previously, if a username element was filled by either the user or the password manager, the user would have to erase the entire field to see the full list of credentials the user has. Now the user can click on the field at any point to get a full list of accounts. However, if the user starts typing again, then inline autocomplete takes over. BUG=341474 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283383

Patch Set 1 #

Patch Set 2 : Readded inline autocomplete #

Total comments: 4

Patch Set 3 : Updated so first-click suggestions on password fields only shown if already autofilled #

Total comments: 8

Patch Set 4 : New tests and nits from gcasto #

Patch Set 5 : Fixed a comment and cleaned up a browser test #

Total comments: 8

Patch Set 6 : Update from gcasto's comments #

Total comments: 4

Patch Set 7 : Rebase on ToT #

Patch Set 8 : Rebase on ToT #

Total comments: 4

Patch Set 9 : Changes from gcasto comments #

Patch Set 10 : Rebase on ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -46 lines) Patch
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 chunks +157 lines, -23 lines 0 comments Download
M components/autofill/content/renderer/autofill_agent.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -1 line 0 comments Download
M components/autofill/content/renderer/autofill_agent.cc View 1 2 3 4 5 6 7 8 5 chunks +21 lines, -8 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -4 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 2 3 4 5 6 7 8 9 9 chunks +15 lines, -10 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
jww
This is the credential selector that we've discussed in the password manager meetings.
6 years, 10 months ago (2014-02-14 19:42:04 UTC) #1
Ilya Sherman
Why are we removing inline autocomplete? IMO that's complementary to showing a popup, not competing ...
6 years, 10 months ago (2014-02-14 21:12:49 UTC) #2
jww
On 2014/02/14 21:12:49, Ilya Sherman wrote: > Why are we removing inline autocomplete? IMO that's ...
6 years, 10 months ago (2014-02-14 21:30:48 UTC) #3
Ilya Sherman
On 2014/02/14 21:30:48, jww wrote: > On 2014/02/14 21:12:49, Ilya Sherman wrote: > > Why ...
6 years, 10 months ago (2014-02-14 21:35:09 UTC) #4
jww
On 2014/02/14 21:35:09, Ilya Sherman wrote: > On 2014/02/14 21:30:48, jww wrote: > > On ...
6 years, 10 months ago (2014-02-14 21:57:48 UTC) #5
Ilya Sherman
On 2014/02/14 21:57:48, jww wrote: > On 2014/02/14 21:35:09, Ilya Sherman wrote: > > On ...
6 years, 10 months ago (2014-02-14 23:27:00 UTC) #6
jww
On 2014/02/14 23:27:00, Ilya Sherman wrote: > On 2014/02/14 21:57:48, jww wrote: > > On ...
6 years, 10 months ago (2014-02-18 21:50:42 UTC) #7
gcasto (DO NOT USE)
Looks like I missed most of the discussion on this, but it ended up in ...
6 years, 10 months ago (2014-02-18 22:54:47 UTC) #8
jww
On 2014/02/18 22:54:47, gcasto wrote: > Looks like I missed most of the discussion on ...
6 years, 10 months ago (2014-02-18 23:48:20 UTC) #9
jww
I've re-added inline autocomplete, so let me know how it looks now.
6 years, 10 months ago (2014-02-19 02:21:54 UTC) #10
Garrett Casto
Another thing I was thinking of, if we make it so that we get the ...
6 years, 10 months ago (2014-02-19 21:20:18 UTC) #11
jww
https://codereview.chromium.org/166043006/diff/140001/components/autofill/content/renderer/autofill_agent.cc File components/autofill/content/renderer/autofill_agent.cc (right): https://codereview.chromium.org/166043006/diff/140001/components/autofill/content/renderer/autofill_agent.cc#newcode292 components/autofill/content/renderer/autofill_agent.cc:292: ShowSuggestions(element, true, false, true, false, true); On 2014/02/19 21:20:19, ...
6 years, 10 months ago (2014-02-19 21:56:48 UTC) #12
jww
https://codereview.chromium.org/166043006/diff/140001/components/autofill/content/renderer/autofill_agent.cc File components/autofill/content/renderer/autofill_agent.cc (right): https://codereview.chromium.org/166043006/diff/140001/components/autofill/content/renderer/autofill_agent.cc#newcode292 components/autofill/content/renderer/autofill_agent.cc:292: ShowSuggestions(element, true, false, true, false, true); On 2014/02/19 21:56:48, ...
6 years, 10 months ago (2014-02-19 22:14:38 UTC) #13
Ilya Sherman
My thoughts: (1) It would be nice to treat all methods of focusing the field, ...
6 years, 10 months ago (2014-02-19 23:47:37 UTC) #14
Garrett Casto
On Wed, Feb 19, 2014 at 3:47 PM, <[email protected]> wrote: > My thoughts: > > ...
6 years, 10 months ago (2014-02-20 00:20:01 UTC) #15
Ilya Sherman
On 2014/02/20 00:20:01, Garrett Casto wrote: > On Wed, Feb 19, 2014 at 3:47 PM, ...
6 years, 10 months ago (2014-02-20 00:27:58 UTC) #16
jww
I misunderstood Garrett's point about first-click suggestions on general Autofill. I've fixed that. Also, I've ...
6 years, 10 months ago (2014-02-21 02:43:27 UTC) #17
Garrett Casto
We should really add a test for the new show all behavior. I can think ...
6 years, 10 months ago (2014-02-24 23:45:09 UTC) #18
jww
On 2014/02/24 23:45:09, Garrett Casto wrote: > We should really add a test for the ...
6 years, 9 months ago (2014-03-05 02:11:39 UTC) #19
jww
https://codereview.chromium.org/166043006/diff/250001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/166043006/diff/250001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode851 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:851: // the autofill choice from the dropdown, thus causing ...
6 years, 9 months ago (2014-03-05 02:11:48 UTC) #20
jww
6 years, 9 months ago (2014-03-05 07:49:51 UTC) #21
Garrett Casto
https://codereview.chromium.org/166043006/diff/350001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/166043006/diff/350001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode1112 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:1112: password_autofill_->pause_messages(); I'd probably remove pause_messages() and resume_message() and just ...
6 years, 9 months ago (2014-03-06 01:23:45 UTC) #22
jww
https://codereview.chromium.org/166043006/diff/350001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/166043006/diff/350001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode1112 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:1112: password_autofill_->pause_messages(); On 2014/03/06 01:23:46, Garrett Casto wrote: > I'd ...
6 years, 9 months ago (2014-03-07 02:06:05 UTC) #23
Garrett Casto
https://codereview.chromium.org/166043006/diff/370001/components/autofill/content/renderer/autofill_agent.cc File components/autofill/content/renderer/autofill_agent.cc (right): https://codereview.chromium.org/166043006/diff/370001/components/autofill/content/renderer/autofill_agent.cc#newcode296 components/autofill/content/renderer/autofill_agent.cc:296: (!element.isAutofilled() && was_focused); This seems overly complicated to me. ...
6 years, 9 months ago (2014-03-12 06:50:44 UTC) #24
jww
https://codereview.chromium.org/166043006/diff/370001/components/autofill/content/renderer/autofill_agent.cc File components/autofill/content/renderer/autofill_agent.cc (right): https://codereview.chromium.org/166043006/diff/370001/components/autofill/content/renderer/autofill_agent.cc#newcode296 components/autofill/content/renderer/autofill_agent.cc:296: (!element.isAutofilled() && was_focused); On 2014/03/12 06:50:45, Garrett Casto wrote: ...
6 years, 9 months ago (2014-03-19 01:08:01 UTC) #25
Garrett Casto
https://codereview.chromium.org/166043006/diff/370001/components/autofill/content/renderer/autofill_agent.cc File components/autofill/content/renderer/autofill_agent.cc (right): https://codereview.chromium.org/166043006/diff/370001/components/autofill/content/renderer/autofill_agent.cc#newcode296 components/autofill/content/renderer/autofill_agent.cc:296: (!element.isAutofilled() && was_focused); On 2014/03/19 01:08:02, jww wrote: > ...
6 years, 9 months ago (2014-03-19 20:54:39 UTC) #26
jww
Sorry for letting this CL get long in the tooth; I just lost track of ...
6 years, 6 months ago (2014-06-20 18:43:46 UTC) #27
Garrett Casto
I think that your reasoning seems fine. In particular, that a user clicking back in ...
6 years, 5 months ago (2014-07-15 22:17:20 UTC) #28
jww
https://codereview.chromium.org/166043006/diff/410001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/166043006/diff/410001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode1437 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:1437: // Specifiaclly, tests when the user clicks on the ...
6 years, 5 months ago (2014-07-15 22:48:26 UTC) #29
jww
The CQ bit was checked by [email protected]
6 years, 5 months ago (2014-07-15 22:48:32 UTC) #30
jww
The CQ bit was unchecked by [email protected]
6 years, 5 months ago (2014-07-15 22:48:44 UTC) #31
jww
The CQ bit was checked by [email protected]
6 years, 5 months ago (2014-07-15 22:51:46 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/166043006/450001
6 years, 5 months ago (2014-07-15 22:53:36 UTC) #33
commit-bot: I haz the power
6 years, 5 months ago (2014-07-16 07:28:15 UTC) #34
Message was sent while issue was closed.
Change committed as 283383

Powered by Google App Engine
This is Rietveld 408576698