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

Issue 1671753004: [Autofill] Fill fields that have an autocomplete attributes even if not in a form. (Closed)

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

Description

If the web site designer took the time to put the autocomplete attributes, we should use those. Since these fields have an autocomplete attribute defined, the heuristics and server predctions won't be run. Therefore, more fields would be form with a minimal additionnal cost without the risk of making a bad prediction. BUG=579651 TEST=FormAutofillBrowserTest Committed: https://crrev.com/d2293ca3fd96dd69a6d0f815d8b25d19ab5847cf Cr-Commit-Position: refs/heads/master@{#374243}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed comments #

Total comments: 6

Patch Set 3 : Nits #

Patch Set 4 : Added IPC Trait for new attribute #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -30 lines) Patch
M chrome/renderer/autofill/form_autofill_browsertest.cc View 1 4 chunks +26 lines, -7 lines 0 comments Download
M components/autofill/content/common/autofill_param_traits_macros.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/content/renderer/form_autofill_util.cc View 1 2 chunks +17 lines, -1 line 0 comments Download
M components/autofill/core/browser/form_structure.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/autofill/core/browser/form_structure.cc View 1 2 2 chunks +8 lines, -5 lines 0 comments Download
M components/autofill/core/browser/form_structure_unittest.cc View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
M components/autofill/core/common/form_data.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M components/autofill/core/common/form_data.cc View 1 5 chunks +20 lines, -16 lines 0 comments Download
M components/autofill/core/common/form_data_unittest.cc View 1 3 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (12 generated)
sebsg
PTAL, this should fix a couple of sites including play.google.com and store.google.com :)
4 years, 10 months ago (2016-02-05 16:43:36 UTC) #4
Mathieu
https://codereview.chromium.org/1671753004/diff/20001/components/autofill/content/renderer/form_autofill_util.cc File components/autofill/content/renderer/form_autofill_util.cc (right): https://codereview.chromium.org/1671753004/diff/20001/components/autofill/content/renderer/form_autofill_util.cc#newcode1530 components/autofill/content/renderer/form_autofill_util.cc:1530: // Since it's not a checkout flow, only add ...
4 years, 10 months ago (2016-02-05 18:39:06 UTC) #5
sebsg
Thanks! https://codereview.chromium.org/1671753004/diff/20001/components/autofill/content/renderer/form_autofill_util.cc File components/autofill/content/renderer/form_autofill_util.cc (right): https://codereview.chromium.org/1671753004/diff/20001/components/autofill/content/renderer/form_autofill_util.cc#newcode1530 components/autofill/content/renderer/form_autofill_util.cc:1530: // Since it's not a checkout flow, only ...
4 years, 10 months ago (2016-02-05 20:08:00 UTC) #6
Mathieu
lgtm with nits https://codereview.chromium.org/1671753004/diff/40001/components/autofill/core/browser/form_structure.cc File components/autofill/core/browser/form_structure.cc (right): https://codereview.chromium.org/1671753004/diff/40001/components/autofill/core/browser/form_structure.cc#newcode345 components/autofill/core/browser/form_structure.cc:345: // Then, if there are enough ...
4 years, 10 months ago (2016-02-05 22:36:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1671753004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1671753004/60001
4 years, 10 months ago (2016-02-07 19:05:26 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/176431)
4 years, 10 months ago (2016-02-07 19:35:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1671753004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1671753004/60001
4 years, 10 months ago (2016-02-08 14:43:29 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/170645) win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, ...
4 years, 10 months ago (2016-02-08 15:21:25 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1671753004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1671753004/80001
4 years, 10 months ago (2016-02-08 23:04:29 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 10 months ago (2016-02-09 00:48:47 UTC) #21
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/d2293ca3fd96dd69a6d0f815d8b25d19ab5847cf Cr-Commit-Position: refs/heads/master@{#374243}
4 years, 10 months ago (2016-02-09 00:50:30 UTC) #23
sebsg
4 years, 10 months ago (2016-02-09 01:13:57 UTC) #24
Message was sent while issue was closed.
Thanks

https://codereview.chromium.org/1671753004/diff/40001/components/autofill/cor...
File components/autofill/core/browser/form_structure.cc (right):

https://codereview.chromium.org/1671753004/diff/40001/components/autofill/cor...
components/autofill/core/browser/form_structure.cc:345: // Then, if there are
enough active fields and if the form is not a synthetic
On 2016/02/05 22:36:45, Mathieu Perreault wrote:
> // Then if there are enough active fields, and if we are dealing with either a
> proper <form> or a <form>-less checkout, run the...

Done.

https://codereview.chromium.org/1671753004/diff/40001/components/autofill/cor...
File components/autofill/core/browser/form_structure_unittest.cc (right):

https://codereview.chromium.org/1671753004/diff/40001/components/autofill/cor...
components/autofill/core/browser/form_structure_unittest.cc:454: // Verify that
the heuristics are not run for non checkout synthetic forms.
On 2016/02/05 22:36:45, Mathieu Perreault wrote:
> I would change synthetic -> formless everywhere.

Done.

https://codereview.chromium.org/1671753004/diff/40001/components/autofill/cor...
File components/autofill/core/common/form_data.h (right):

https://codereview.chromium.org/1671753004/diff/40001/components/autofill/cor...
components/autofill/core/common/form_data.h:38: // fields should be filled using
only the autocomplete attributes.
On 2016/02/05 22:36:45, Mathieu Perreault wrote:
> nit: don't mention behavior.

Done.

Powered by Google App Engine
This is Rietveld 408576698