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

Issue 659793005: [Password Generation] Always query password forms via Autofill (Closed)

Created:
6 years, 2 months ago by Garrett Casto
Modified:
6 years, 1 month ago
Reviewers:
Ilya Sherman
CC:
chromium-reviews, benquan, browser-components-watch_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Password Generation] Always query password forms via Autofill For other fields, we assume that if the author has specified autocomplete attributes we should respect all their choices, including not trying to determine field autocomplete values for fields that the author didn't specify. This doesn't apply for password fields for two reasons. First, there is no way for an author to specify generation for a particular field. Second, since generation isn't a specced autocomplete value, the password field can reasonably be set (e.g. "autocomplete=new-password") and also have generation enabled. BUG=424793 Committed: https://crrev.com/c57dd5602fee1bc2fa1df2424c5f7b95a1702cf4 Cr-Commit-Position: refs/heads/master@{#301521}

Patch Set 1 #

Patch Set 2 : More tests #

Total comments: 11

Patch Set 3 : Comments #

Patch Set 4 : Test #

Total comments: 14

Patch Set 5 : Comments #

Patch Set 6 : More Comments #

Total comments: 1

Patch Set 7 : Done #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -14 lines) Patch
M chrome/browser/autofill/autofill_server_browsertest.cc View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M components/autofill/core/browser/form_structure.h View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M components/autofill/core/browser/form_structure.cc View 1 2 3 4 6 4 chunks +23 lines, -13 lines 0 comments Download
M components/autofill/core/browser/form_structure_unittest.cc View 1 2 3 4 5 6 2 chunks +121 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (2 generated)
Garrett Casto
Hey Ilya, please take a look. I was thinking of adding one additional test to ...
6 years, 2 months ago (2014-10-23 22:48:17 UTC) #2
Ilya Sherman
On 2014/10/23 22:48:17, Garrett Casto wrote: > Hey Ilya, please take a look. I was ...
6 years, 2 months ago (2014-10-24 01:23:39 UTC) #3
Ilya Sherman
https://codereview.chromium.org/659793005/diff/20001/chrome/browser/autofill/autofill_server_browsertest.cc File chrome/browser/autofill/autofill_server_browsertest.cc (right): https://codereview.chromium.org/659793005/diff/20001/chrome/browser/autofill/autofill_server_browsertest.cc#newcode73 chrome/browser/autofill/autofill_server_browsertest.cc:73: LOG(INFO) << fetcher->upload_data(); nit: Please revert. https://codereview.chromium.org/659793005/diff/20001/components/autofill/core/browser/form_structure.cc File components/autofill/core/browser/form_structure.cc ...
6 years, 2 months ago (2014-10-24 01:24:46 UTC) #4
Garrett Casto
I added two relatively simple tests for FormStructure::ParseQueryResponse(). PTAL https://codereview.chromium.org/659793005/diff/20001/chrome/browser/autofill/autofill_server_browsertest.cc File chrome/browser/autofill/autofill_server_browsertest.cc (right): https://codereview.chromium.org/659793005/diff/20001/chrome/browser/autofill/autofill_server_browsertest.cc#newcode73 chrome/browser/autofill/autofill_server_browsertest.cc:73: ...
6 years, 2 months ago (2014-10-24 21:13:10 UTC) #5
Garrett Casto
One sec, it looks like there is an issue with the test that I need ...
6 years, 2 months ago (2014-10-24 21:55:58 UTC) #6
Garrett Casto
Hadn't uploaded the latest version of the test. Sorry about that. PTAL.
6 years, 2 months ago (2014-10-24 22:09:43 UTC) #7
Ilya Sherman
Thanks for adding tests, Garrett :) https://codereview.chromium.org/659793005/diff/20001/components/autofill/core/browser/form_structure_unittest.cc File components/autofill/core/browser/form_structure_unittest.cc (right): https://codereview.chromium.org/659793005/diff/20001/components/autofill/core/browser/form_structure_unittest.cc#newcode506 components/autofill/core/browser/form_structure_unittest.cc:506: EXPECT_EQ(UNKNOWN_TYPE, form_structure->field(3)->heuristic_type()); On ...
6 years, 2 months ago (2014-10-24 22:42:31 UTC) #8
Garrett Casto
https://codereview.chromium.org/659793005/diff/60001/components/autofill/core/browser/form_structure.cc File components/autofill/core/browser/form_structure.cc (right): https://codereview.chromium.org/659793005/diff/60001/components/autofill/core/browser/form_structure.cc#newcode372 components/autofill/core/browser/form_structure.cc:372: has_password_field_ = true; On 2014/10/24 22:42:30, Ilya Sherman wrote: ...
6 years, 2 months ago (2014-10-24 23:19:52 UTC) #9
Ilya Sherman
Thanks, Garrett =) https://codereview.chromium.org/659793005/diff/60001/components/autofill/core/browser/form_structure.cc File components/autofill/core/browser/form_structure.cc (right): https://codereview.chromium.org/659793005/diff/60001/components/autofill/core/browser/form_structure.cc#newcode592 components/autofill/core/browser/form_structure.cc:592: (*field)->set_server_type(current_info->field_type); On 2014/10/24 23:19:52, Garrett Casto ...
6 years, 2 months ago (2014-10-24 23:40:14 UTC) #10
Garrett Casto
https://codereview.chromium.org/659793005/diff/60001/components/autofill/core/browser/form_structure.cc File components/autofill/core/browser/form_structure.cc (right): https://codereview.chromium.org/659793005/diff/60001/components/autofill/core/browser/form_structure.cc#newcode592 components/autofill/core/browser/form_structure.cc:592: (*field)->set_server_type(current_info->field_type); On 2014/10/24 23:40:14, Ilya Sherman wrote: > On ...
6 years, 2 months ago (2014-10-25 00:04:54 UTC) #11
Ilya Sherman
LGTM https://codereview.chromium.org/659793005/diff/100001/components/autofill/core/browser/form_structure.cc File components/autofill/core/browser/form_structure.cc (right): https://codereview.chromium.org/659793005/diff/100001/components/autofill/core/browser/form_structure.cc#newcode590 components/autofill/core/browser/form_structure.cc:590: ++current_info; Oh, sorry, I had not noticed that ...
6 years, 2 months ago (2014-10-25 00:36:18 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/659793005/120001
6 years, 1 month ago (2014-10-27 23:14:23 UTC) #14
commit-bot: I haz the power
Committed patchset #7 (id:120001)
6 years, 1 month ago (2014-10-28 00:45:57 UTC) #15
commit-bot: I haz the power
6 years, 1 month ago (2014-10-28 00:46:47 UTC) #16
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/c57dd5602fee1bc2fa1df2424c5f7b95a1702cf4
Cr-Commit-Position: refs/heads/master@{#301521}

Powered by Google App Engine
This is Rietveld 408576698