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

Issue 1411363003: [Autofill] Always show available data when encountering autocomplete attributes (Closed)

Created:
5 years, 2 months ago by sebsg
Modified:
5 years ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, rouslan+autofill_chromium.org, browser-components-watch_chromium.org, jam, jdonnelly+autofillwatch_chromium.org, bondd+autofillwatch_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, estade+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Autofill] Always show available data when encountering autocomplete attributes This will specifically alter behavior for forms that have 1-2 fields and which specify autocomplete attributes. Those will now be autofilled. As per existing behavior, if a form is partially marked up with autocomplete attributes, non-marked fields are not parsed or autofilled. Changes General Description: Form_cache: Change the limit of fields / editable elements from 3 to 1. Otherwise the manager will not receive the form at all and won't be able to make suggestions. Form_structure: ShouldBeParsed will now return true for forms with less than 3 fields if there is at least one field with an autocomplete attribute. Autofill_manager: In ParseForms, the ParseFieldTypesFromAutocompleteAttributes is called before the check to ShouldParse to detect autocomplete attributes in the form. In OnQueryFormFieldAutofill use ShouldBeParsed instead of Autofillable to make sure to send suggestions for small forms with autocomplete attribute(s) BUG=541681 Committed: https://crrev.com/6b4ba4ea43e17b16e59ef8f8b416226515ac14f1 Cr-Commit-Position: refs/heads/master@{#361460}

Patch Set 1 #

Patch Set 2 : Added test #

Total comments: 12

Patch Set 3 : Addressed mathp's comments #

Total comments: 12

Patch Set 4 : Rebase #

Patch Set 5 : Addressed comments and added tests #

Patch Set 6 : Addressed comments #

Patch Set 7 : Rebase #

Total comments: 20

Patch Set 8 : Addressed comments #

Total comments: 10

Patch Set 9 : Addressed comments #

Total comments: 4

Patch Set 10 : Rebase #

Patch Set 11 : Addressed comments #

Patch Set 12 : Rebase #

Patch Set 13 : Fixed bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -67 lines) Patch
M chrome/browser/ui/android/autofill/autofill_dialog_controller_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/renderer/autofill/form_autofill_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +43 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/form_cache.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +23 lines, -13 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +7 lines, -13 lines 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +140 lines, -1 line 0 comments Download
M components/autofill/core/browser/form_structure.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +20 lines, -5 lines 0 comments Download
M components/autofill/core/browser/form_structure.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +17 lines, -14 lines 0 comments Download
M components/autofill/core/browser/form_structure_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +27 lines, -3 lines 0 comments Download
M components/autofill/core/common/autofill_constants.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -5 lines 0 comments Download
M components/autofill/core/common/autofill_constants.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 65 (32 generated)
sebsg
Can you take a look when you get the chance? Thanks!
5 years, 2 months ago (2015-10-20 20:26:44 UTC) #4
Mathieu
https://codereview.chromium.org/1411363003/diff/60001/components/autofill/content/renderer/form_cache.cc File components/autofill/content/renderer/form_cache.cc (right): https://codereview.chromium.org/1411363003/diff/60001/components/autofill/content/renderer/form_cache.cc#newcode67 components/autofill/content/renderer/form_cache.cc:67: return (num_editable_elements < 1 && num_control_elements > 0); !num_editable_elements ...
5 years, 2 months ago (2015-10-20 21:03:11 UTC) #6
sebsg
https://codereview.chromium.org/1411363003/diff/60001/components/autofill/content/renderer/form_cache.cc File components/autofill/content/renderer/form_cache.cc (right): https://codereview.chromium.org/1411363003/diff/60001/components/autofill/content/renderer/form_cache.cc#newcode67 components/autofill/content/renderer/form_cache.cc:67: return (num_editable_elements < 1 && num_control_elements > 0); On ...
5 years, 2 months ago (2015-10-21 18:20:50 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411363003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411363003/100001
5 years, 2 months ago (2015-10-21 18:59:03 UTC) #13
Mathieu
lgtm Evan please have a look.
5 years, 2 months ago (2015-10-21 18:59:15 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/84319) ios_rel_device_ninja on ...
5 years, 2 months ago (2015-10-21 19:02:12 UTC) #17
Mathieu
On 2015/10/21 19:02:12, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
5 years, 2 months ago (2015-10-21 19:11:21 UTC) #18
Evan Stade
https://codereview.chromium.org/1411363003/diff/100001/components/autofill/content/renderer/form_cache.cc File components/autofill/content/renderer/form_cache.cc (left): https://codereview.chromium.org/1411363003/diff/100001/components/autofill/content/renderer/form_cache.cc#oldcode120 components/autofill/content/renderer/form_cache.cc:120: if (form.fields.size() >= kRequiredAutofillFields && Why are we changing ...
5 years, 2 months ago (2015-10-21 19:12:31 UTC) #19
sebsg
https://codereview.chromium.org/1411363003/diff/100001/components/autofill/content/renderer/form_cache.cc File components/autofill/content/renderer/form_cache.cc (left): https://codereview.chromium.org/1411363003/diff/100001/components/autofill/content/renderer/form_cache.cc#oldcode120 components/autofill/content/renderer/form_cache.cc:120: if (form.fields.size() >= kRequiredAutofillFields && On 2015/10/21 19:12:31, Evan ...
5 years, 1 month ago (2015-10-26 15:57:56 UTC) #21
Evan Stade
https://codereview.chromium.org/1411363003/diff/100001/components/autofill/content/renderer/form_cache.cc File components/autofill/content/renderer/form_cache.cc (left): https://codereview.chromium.org/1411363003/diff/100001/components/autofill/content/renderer/form_cache.cc#oldcode120 components/autofill/content/renderer/form_cache.cc:120: if (form.fields.size() >= kRequiredAutofillFields && On 2015/10/26 15:57:55, sebsg ...
5 years, 1 month ago (2015-10-27 17:08:37 UTC) #22
Mathieu
https://codereview.chromium.org/1411363003/diff/100001/components/autofill/content/renderer/form_cache.cc File components/autofill/content/renderer/form_cache.cc (left): https://codereview.chromium.org/1411363003/diff/100001/components/autofill/content/renderer/form_cache.cc#oldcode120 components/autofill/content/renderer/form_cache.cc:120: if (form.fields.size() >= kRequiredAutofillFields && On 2015/10/27 17:08:37, Evan ...
5 years, 1 month ago (2015-10-28 12:50:48 UTC) #23
Evan Stade
https://codereview.chromium.org/1411363003/diff/100001/components/autofill/content/renderer/form_cache.cc File components/autofill/content/renderer/form_cache.cc (left): https://codereview.chromium.org/1411363003/diff/100001/components/autofill/content/renderer/form_cache.cc#oldcode120 components/autofill/content/renderer/form_cache.cc:120: if (form.fields.size() >= kRequiredAutofillFields && > if it's interesting ...
5 years, 1 month ago (2015-10-28 18:51:53 UTC) #24
sebsg
https://codereview.chromium.org/1411363003/diff/100001/components/autofill/content/renderer/form_cache.cc File components/autofill/content/renderer/form_cache.cc (left): https://codereview.chromium.org/1411363003/diff/100001/components/autofill/content/renderer/form_cache.cc#oldcode120 components/autofill/content/renderer/form_cache.cc:120: if (form.fields.size() >= kRequiredAutofillFields && On 2015/10/27 17:08:37, Evan ...
5 years, 1 month ago (2015-11-02 19:55:13 UTC) #26
Evan Stade
https://codereview.chromium.org/1411363003/diff/220001/components/autofill/content/renderer/form_cache.cc File components/autofill/content/renderer/form_cache.cc (left): https://codereview.chromium.org/1411363003/diff/220001/components/autofill/content/renderer/form_cache.cc#oldcode68 components/autofill/content/renderer/form_cache.cc:68: num_control_elements > 0); prefer this way of checking against ...
5 years, 1 month ago (2015-11-04 17:15:19 UTC) #27
sebsg
Thanks for your comments. Could you take another look when you get the chance? Thanks! ...
5 years, 1 month ago (2015-11-10 19:04:51 UTC) #32
sebsg
On 2015/11/10 19:04:51, sebsg wrote: > Thanks for your comments. Could you take another look ...
5 years, 1 month ago (2015-11-17 15:16:12 UTC) #33
Mathieu
https://codereview.chromium.org/1411363003/diff/320001/components/autofill/content/renderer/form_cache.cc File components/autofill/content/renderer/form_cache.cc (right): https://codereview.chromium.org/1411363003/diff/320001/components/autofill/content/renderer/form_cache.cc#newcode64 components/autofill/content/renderer/form_cache.cc:64: bool IsFormInteresting(FormData form) { const FormData& ? https://codereview.chromium.org/1411363003/diff/320001/components/autofill/core/common/autofill_constants.h File ...
5 years, 1 month ago (2015-11-17 15:45:06 UTC) #34
Mathieu
https://codereview.chromium.org/1411363003/diff/320001/components/autofill/content/renderer/form_cache.cc File components/autofill/content/renderer/form_cache.cc (right): https://codereview.chromium.org/1411363003/diff/320001/components/autofill/content/renderer/form_cache.cc#newcode70 components/autofill/content/renderer/form_cache.cc:70: for (auto field : form.fields) { const auto& field ...
5 years, 1 month ago (2015-11-17 18:27:11 UTC) #35
Evan Stade
https://codereview.chromium.org/1411363003/diff/320001/components/autofill/content/renderer/form_cache.cc File components/autofill/content/renderer/form_cache.cc (right): https://codereview.chromium.org/1411363003/diff/320001/components/autofill/content/renderer/form_cache.cc#newcode70 components/autofill/content/renderer/form_cache.cc:70: for (auto field : form.fields) { On 2015/11/17 18:27:11, ...
5 years, 1 month ago (2015-11-17 19:13:37 UTC) #36
sebsg
Thanks for your comments https://codereview.chromium.org/1411363003/diff/320001/components/autofill/content/renderer/form_cache.cc File components/autofill/content/renderer/form_cache.cc (right): https://codereview.chromium.org/1411363003/diff/320001/components/autofill/content/renderer/form_cache.cc#newcode64 components/autofill/content/renderer/form_cache.cc:64: bool IsFormInteresting(FormData form) { On ...
5 years, 1 month ago (2015-11-18 16:40:27 UTC) #37
Evan Stade
lgtm https://codereview.chromium.org/1411363003/diff/340001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/1411363003/diff/340001/components/autofill/core/browser/autofill_manager.cc#newcode1355 components/autofill/core/browser/autofill_manager.cc:1355: ^H https://codereview.chromium.org/1411363003/diff/340001/components/autofill/core/common/autofill_constants.h File components/autofill/core/common/autofill_constants.h (right): https://codereview.chromium.org/1411363003/diff/340001/components/autofill/core/common/autofill_constants.h#newcode22 components/autofill/core/common/autofill_constants.h:22: extern ...
5 years, 1 month ago (2015-11-18 22:59:15 UTC) #38
sebsg
Thanks! https://codereview.chromium.org/1411363003/diff/340001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/1411363003/diff/340001/components/autofill/core/browser/autofill_manager.cc#newcode1355 components/autofill/core/browser/autofill_manager.cc:1355: On 2015/11/18 22:59:15, Evan Stade wrote: > ^H ...
5 years, 1 month ago (2015-11-19 19:25:03 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411363003/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411363003/400001
5 years, 1 month ago (2015-11-19 19:25:42 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_compile_dbg/builds/87593) linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 1 month ago (2015-11-19 19:55:57 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411363003/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411363003/420001
5 years, 1 month ago (2015-11-19 20:10:02 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, no build URL)
5 years, 1 month ago (2015-11-19 20:25:41 UTC) #50
sebsg
Hi Lei, could you please take a quick look at chrome/browser/ui/android/autofill/autofill_dialog_controller_android.cc please? Thanks!
5 years ago (2015-11-24 19:29:07 UTC) #56
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411363003/500001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411363003/500001
5 years ago (2015-11-24 19:29:51 UTC) #57
Lei Zhang
lgtm
5 years ago (2015-11-24 19:32:31 UTC) #58
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-24 21:14:48 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411363003/500001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411363003/500001
5 years ago (2015-11-24 21:36:28 UTC) #63
commit-bot: I haz the power
Committed patchset #13 (id:500001)
5 years ago (2015-11-24 21:55:29 UTC) #64
commit-bot: I haz the power
5 years ago (2015-11-24 21:57:03 UTC) #65
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/6b4ba4ea43e17b16e59ef8f8b416226515ac14f1
Cr-Commit-Position: refs/heads/master@{#361460}

Powered by Google App Engine
This is Rietveld 408576698