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

Issue 853523004: Autofill: Set requirements for number of recognized fields in an autofillable form (Closed)

Created:
5 years, 11 months ago by Lei Zhang
Modified:
5 years, 10 months ago
CC:
chromium-reviews, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Autofill: Set requirements for number of recognized fields in an autofillable form BUG=447332 Committed: https://crrev.com/97338dbd9d3367fec22d2f690156df85c0b2572b Cr-Commit-Position: refs/heads/master@{#313551}

Patch Set 1 : Failing test case #

Patch Set 2 : Fix bug, adjust tests #

Total comments: 2

Patch Set 3 : Different strategy #

Patch Set 4 : More relaxed check for form tag #

Total comments: 19

Patch Set 5 : Ignore #

Patch Set 6 : Address comments #

Patch Set 7 : Address comments #

Total comments: 2

Patch Set 8 : Address comments #

Patch Set 9 : Address comments #

Total comments: 10

Patch Set 10 : Rebase #

Total comments: 7

Patch Set 11 : Address comments #

Patch Set 12 : FormData field #

Patch Set 13 : Revert files without relevant changes #

Total comments: 2

Patch Set 14 : Rebase, change variable name #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -114 lines) Patch
A chrome/test/data/autofill/heuristics/input/bug_447332.html View 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/autofill/heuristics/output/bug_447332.out View 1 1 chunk +4 lines, -0 lines 2 comments Download
M components/autofill/content/common/autofill_param_traits_macros.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/content/renderer/form_autofill_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/browser/form_field.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/browser/form_field.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +19 lines, -3 lines 2 comments Download
M components/autofill/core/browser/form_field_unittest.cc View 1 2 3 4 5 1 chunk +12 lines, -3 lines 0 comments Download
M components/autofill/core/browser/form_structure.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -1 line 0 comments Download
M components/autofill/core/browser/form_structure.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -2 lines 0 comments Download
M components/autofill/core/browser/form_structure_unittest.cc View 1 2 6 chunks +16 lines, -4 lines 0 comments Download
M components/autofill/core/common/form_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M components/autofill/core/common/form_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +40 lines, -27 lines 0 comments Download
M components/autofill/core/common/form_data_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +47 lines, -74 lines 0 comments Download

Messages

Total messages: 31 (3 generated)
Lei Zhang
5 years, 11 months ago (2015-01-15 04:04:39 UTC) #2
Evan Stade
https://codereview.chromium.org/853523004/diff/20001/components/autofill/core/browser/address_field.cc File components/autofill/core/browser/address_field.cc (right): https://codereview.chromium.org/853523004/diff/20001/components/autofill/core/browser/address_field.cc#newcode79 components/autofill/core/browser/address_field.cc:79: bool has_valid_non_street_address_field = (address_field->company_ || nit: I think we ...
5 years, 11 months ago (2015-01-15 04:11:37 UTC) #3
Evan Stade
https://codereview.chromium.org/853523004/diff/20001/components/autofill/core/browser/address_field.cc File components/autofill/core/browser/address_field.cc (right): https://codereview.chromium.org/853523004/diff/20001/components/autofill/core/browser/address_field.cc#newcode79 components/autofill/core/browser/address_field.cc:79: bool has_valid_non_street_address_field = (address_field->company_ || On 2015/01/15 04:11:37, Evan ...
5 years, 11 months ago (2015-01-15 04:12:23 UTC) #4
Lei Zhang
On 2015/01/15 04:11:37, Evan Stade wrote: > https://codereview.chromium.org/853523004/diff/20001/components/autofill/core/browser/address_field.cc > File components/autofill/core/browser/address_field.cc (right): > > https://codereview.chromium.org/853523004/diff/20001/components/autofill/core/browser/address_field.cc#newcode79 ...
5 years, 11 months ago (2015-01-17 04:18:02 UTC) #5
Evan Stade
On 2015/01/17 04:18:02, Lei Zhang wrote: > On 2015/01/15 04:11:37, Evan Stade wrote: > > ...
5 years, 11 months ago (2015-01-18 03:59:50 UTC) #6
Lei Zhang
On 2015/01/18 03:59:50, Evan Stade wrote: > I don't think you need to require 3 ...
5 years, 11 months ago (2015-01-21 08:52:48 UTC) #7
Evan Stade
https://codereview.chromium.org/853523004/diff/60001/components/autofill/core/browser/address_field.cc File components/autofill/core/browser/address_field.cc (right): https://codereview.chromium.org/853523004/diff/60001/components/autofill/core/browser/address_field.cc#newcode153 components/autofill/core/browser/address_field.cc:153: return count;; nit: ;; https://codereview.chromium.org/853523004/diff/60001/components/autofill/core/browser/credit_card_field.cc File components/autofill/core/browser/credit_card_field.cc (right): https://codereview.chromium.org/853523004/diff/60001/components/autofill/core/browser/credit_card_field.cc#newcode255 ...
5 years, 11 months ago (2015-01-21 22:52:50 UTC) #8
Lei Zhang
https://codereview.chromium.org/853523004/diff/60001/components/autofill/core/browser/address_field.cc File components/autofill/core/browser/address_field.cc (right): https://codereview.chromium.org/853523004/diff/60001/components/autofill/core/browser/address_field.cc#newcode153 components/autofill/core/browser/address_field.cc:153: return count;; On 2015/01/21 22:52:49, Evan Stade wrote: > ...
5 years, 11 months ago (2015-01-22 08:07:37 UTC) #9
Evan Stade
https://codereview.chromium.org/853523004/diff/60001/components/autofill/core/browser/form_field.cc File components/autofill/core/browser/form_field.cc (right): https://codereview.chromium.org/853523004/diff/60001/components/autofill/core/browser/form_field.cc#newcode185 components/autofill/core/browser/form_field.cc:185: field_count += form_field->FieldCount(); On 2015/01/22 08:07:37, Lei Zhang wrote: ...
5 years, 11 months ago (2015-01-22 17:17:05 UTC) #10
Lei Zhang
https://codereview.chromium.org/853523004/diff/60001/components/autofill/core/browser/form_field.cc File components/autofill/core/browser/form_field.cc (right): https://codereview.chromium.org/853523004/diff/60001/components/autofill/core/browser/form_field.cc#newcode185 components/autofill/core/browser/form_field.cc:185: field_count += form_field->FieldCount(); On 2015/01/22 17:17:05, Evan Stade wrote: ...
5 years, 11 months ago (2015-01-22 23:14:15 UTC) #11
Evan Stade
https://codereview.chromium.org/853523004/diff/120001/components/autofill/core/browser/form_field.cc File components/autofill/core/browser/form_field.cc (right): https://codereview.chromium.org/853523004/diff/120001/components/autofill/core/browser/form_field.cc#newcode191 components/autofill/core/browser/form_field.cc:191: return map->size() - initial_field_count; this doesn't need to be ...
5 years, 11 months ago (2015-01-22 23:17:04 UTC) #12
Lei Zhang
5 years, 11 months ago (2015-01-22 23:31:53 UTC) #13
Lei Zhang
https://codereview.chromium.org/853523004/diff/120001/components/autofill/core/browser/form_field.cc File components/autofill/core/browser/form_field.cc (right): https://codereview.chromium.org/853523004/diff/120001/components/autofill/core/browser/form_field.cc#newcode191 components/autofill/core/browser/form_field.cc:191: return map->size() - initial_field_count; On 2015/01/22 23:17:04, Evan Stade ...
5 years, 11 months ago (2015-01-22 23:32:05 UTC) #14
Evan Stade
https://codereview.chromium.org/853523004/diff/160001/components/autofill/core/browser/email_field.cc File components/autofill/core/browser/email_field.cc (right): https://codereview.chromium.org/853523004/diff/160001/components/autofill/core/browser/email_field.cc#newcode26 components/autofill/core/browser/email_field.cc:26: DCHECK(field); if you want to enforce this, I think ...
5 years, 11 months ago (2015-01-22 23:43:45 UTC) #15
Lei Zhang
https://codereview.chromium.org/853523004/diff/160001/components/autofill/core/browser/email_field.cc File components/autofill/core/browser/email_field.cc (right): https://codereview.chromium.org/853523004/diff/160001/components/autofill/core/browser/email_field.cc#newcode26 components/autofill/core/browser/email_field.cc:26: DCHECK(field); On 2015/01/22 23:43:44, Evan Stade wrote: > if ...
5 years, 11 months ago (2015-01-22 23:58:13 UTC) #16
Evan Stade
https://codereview.chromium.org/853523004/diff/180001/components/autofill/content/renderer/form_cache.cc File components/autofill/content/renderer/form_cache.cc (right): https://codereview.chromium.org/853523004/diff/180001/components/autofill/content/renderer/form_cache.cc#newcode81 components/autofill/content/renderer/form_cache.cc:81: *unowned_form_index = 0; On 2015/01/22 23:58:13, Lei Zhang wrote: ...
5 years, 11 months ago (2015-01-23 02:21:47 UTC) #17
Lei Zhang
+gcasto If I add a boolean to FormData to indicate whether the form is from ...
5 years, 11 months ago (2015-01-23 06:50:17 UTC) #18
Lei Zhang
https://codereview.chromium.org/853523004/diff/180001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/853523004/diff/180001/components/autofill/core/browser/autofill_manager.cc#newcode391 components/autofill/core/browser/autofill_manager.cc:391: if (unowned_form_index > forms.size()) On 2015/01/23 02:21:46, Evan Stade ...
5 years, 11 months ago (2015-01-23 06:59:48 UTC) #19
Garrett Casto
On 2015/01/23 06:50:17, Lei Zhang wrote: > +gcasto > > If I add a boolean ...
5 years, 11 months ago (2015-01-23 23:15:03 UTC) #20
Lei Zhang
On 2015/01/23 23:15:03, Garrett Casto wrote: > The only thing that gets sent to the ...
5 years, 11 months ago (2015-01-24 02:49:34 UTC) #21
Evan Stade
lgtm can you fix the CL description? it seems ungrammatical to me https://codereview.chromium.org/853523004/diff/240001/components/autofill/core/browser/form_structure.h File components/autofill/core/browser/form_structure.h ...
5 years, 11 months ago (2015-01-26 17:59:45 UTC) #22
Lei Zhang
CL description updated https://codereview.chromium.org/853523004/diff/240001/components/autofill/core/browser/form_structure.h File components/autofill/core/browser/form_structure.h (right): https://codereview.chromium.org/853523004/diff/240001/components/autofill/core/browser/form_structure.h#newcode257 components/autofill/core/browser/form_structure.h:257: // True if the form is ...
5 years, 11 months ago (2015-01-28 01:37:35 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/853523004/260001
5 years, 10 months ago (2015-01-28 17:38:33 UTC) #25
commit-bot: I haz the power
Committed patchset #14 (id:260001)
5 years, 10 months ago (2015-01-28 18:50:50 UTC) #26
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/97338dbd9d3367fec22d2f690156df85c0b2572b Cr-Commit-Position: refs/heads/master@{#313551}
5 years, 10 months ago (2015-01-28 18:52:08 UTC) #27
Ilya Sherman
Apologies for the drive-by -- looked out of curiousity, and spotted a couple of things ...
5 years, 10 months ago (2015-01-28 19:30:23 UTC) #29
Lei Zhang
https://codereview.chromium.org/853523004/diff/260001/chrome/test/data/autofill/heuristics/output/bug_447332.out File chrome/test/data/autofill/heuristics/output/bug_447332.out (right): https://codereview.chromium.org/853523004/diff/260001/chrome/test/data/autofill/heuristics/output/bug_447332.out#newcode3 chrome/test/data/autofill/heuristics/output/bug_447332.out:3: UNKNOWN_TYPE | test2 | State your intentions | | ...
5 years, 10 months ago (2015-01-28 19:46:42 UTC) #30
Ilya Sherman
5 years, 10 months ago (2015-01-28 19:53:59 UTC) #31
Message was sent while issue was closed.
Alright, thanks for the replies.

Powered by Google App Engine
This is Rietveld 408576698