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

Issue 1081803003: Limit form-less Autofilling to pages that look like checkout pages. (Closed)

Created:
5 years, 8 months ago by Evan Stade
Modified:
5 years, 8 months ago
Reviewers:
Lei Zhang, brettw
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, browser-components-watch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, 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

Limit form-less Autofilling to pages that look like checkout pages. This should hopefully stem the tide of false positives on non-checkout pages, while preserving desired behavior on Best Buy and Apple checkout. Fixing FormStructureBrowserTests: I went back and added <form>s that were present in the source pages but not in the local copies. I also added the original <title> tags, except for ones that did /not/ include any of the checkout keywords. For these, I added the checkout keywords to the title, so that the test still had some value (instead of passing trivially because the title was "Google Calendar" and not something like "Payment information"). BUG=471090, 477466 Committed: https://crrev.com/aa3219ce27ef5471c19670fe5145b136925cbc89 Cr-Commit-Position: refs/heads/master@{#327108}

Patch Set 1 #

Patch Set 2 : components_unittests #

Patch Set 3 : fix formstructurebrowsertests #

Patch Set 4 : fix .out files #

Patch Set 5 : . #

Total comments: 1

Patch Set 6 : test fixes #

Patch Set 7 : suppress msvc warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+920 lines, -256 lines) Patch
M chrome/renderer/autofill/form_autofill_browsertest.cc View 1 2 3 4 5 28 chunks +39 lines, -19 lines 0 comments Download
M chrome/test/data/autofill/autofill_noform_dynamic.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/autofill/heuristics/input/25_checkout_m_llbean.com.html View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/test/data/autofill/heuristics/input/b465571.html View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/test/data/autofill/heuristics/input/bug_454366.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/autofill/heuristics/input/bug_454366b.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/autofill/heuristics/input/bug_459132.html View 1 2 4 chunks +756 lines, -6 lines 0 comments Download
M chrome/test/data/autofill/heuristics/input/bug_460832.html View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/data/autofill/heuristics/input/bug_462080.html View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/data/autofill/heuristics/input/bug_463856.html View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/data/autofill/heuristics/input/bug_465053.html View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/test/data/autofill/heuristics/input/bug_465576.html View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/test/data/autofill/heuristics/input/bug_471748.html View 1 2 1 chunk +39 lines, -34 lines 0 comments Download
M chrome/test/data/autofill/heuristics/input/bug_471831.html View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
D chrome/test/data/autofill/heuristics/output/b465571.out View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/data/autofill/heuristics/output/bug_459132.out View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
D chrome/test/data/autofill/heuristics/output/bug_465576.out View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
D chrome/test/data/autofill/heuristics/output/bug_471748.out View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/autofill.gypi View 1 2 3 4 5 6 3 chunks +5 lines, -2 lines 0 comments Download
M components/autofill/content/renderer/form_autofill_util.h View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/content/renderer/form_autofill_util.cc View 4 chunks +23 lines, -6 lines 0 comments Download
M components/autofill/content/renderer/form_cache.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/BUILD.gn View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
D components/autofill/core/browser/autofill_regexes.h View 1 chunk +0 lines, -20 lines 0 comments Download
D components/autofill/core/browser/autofill_regexes.cc View 1 chunk +0 lines, -80 lines 0 comments Download
D components/autofill/core/browser/autofill_regexes_unittest.cc View 1 1 chunk +0 lines, -66 lines 0 comments Download
M components/autofill/core/browser/credit_card.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/credit_card_field.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/form_field.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/validation.cc View 1 chunk +1 line, -2 lines 0 comments Download
M components/autofill/core/common/BUILD.gn View 1 2 chunks +3 lines, -0 lines 0 comments Download
A + components/autofill/core/common/autofill_regexes.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/autofill/core/common/autofill_regexes.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/autofill/core/common/autofill_regexes_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (6 generated)
Evan Stade
I think I have some more tests to update, but otherwise this is ready for ...
5 years, 8 months ago (2015-04-18 00:37:05 UTC) #2
Evan Stade
In response to your comment on the bug, Lei: yes, I think a few false ...
5 years, 8 months ago (2015-04-20 19:15:18 UTC) #3
brettw
This seems kind of hacky. We also talked about enforcing some minimum number of form ...
5 years, 8 months ago (2015-04-20 19:24:24 UTC) #4
Lei Zhang
The try jobs for patch set 2 has a bunch of broken FormStructureBrowserTests.
5 years, 8 months ago (2015-04-20 19:25:15 UTC) #5
Evan Stade
On 2015/04/20 19:24:24, brettw wrote: > This seems kind of hacky. We also talked about ...
5 years, 8 months ago (2015-04-20 20:59:06 UTC) #6
Evan Stade
On 2015/04/20 20:59:06, Evan Stade wrote: > On 2015/04/20 19:24:24, brettw wrote: > > This ...
5 years, 8 months ago (2015-04-23 00:34:22 UTC) #7
brettw
I am unhappy but am not sure what to suggest instead. LGTM for now, hopefully ...
5 years, 8 months ago (2015-04-23 19:37:22 UTC) #8
Evan Stade
FormStructureBrowserTests updated --- see explanation in description. Lei, ptal
5 years, 8 months ago (2015-04-23 22:40:44 UTC) #9
Lei Zhang
There's still some failing tests on the try bots. https://codereview.chromium.org/1081803003/diff/80001/chrome/test/data/autofill/heuristics/input/bug_471831.html File chrome/test/data/autofill/heuristics/input/bug_471831.html (right): https://codereview.chromium.org/1081803003/diff/80001/chrome/test/data/autofill/heuristics/input/bug_471831.html#newcode2 chrome/test/data/autofill/heuristics/input/bug_471831.html:2: ...
5 years, 8 months ago (2015-04-24 20:09:31 UTC) #10
Evan Stade
Tests should be fixed.
5 years, 8 months ago (2015-04-24 22:32:54 UTC) #11
Lei Zhang
lgtm
5 years, 8 months ago (2015-04-25 02:39:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1081803003/100001
5 years, 8 months ago (2015-04-25 02:39:56 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/50816)
5 years, 8 months ago (2015-04-25 03:34:13 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1081803003/120001
5 years, 8 months ago (2015-04-27 19:03:50 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 8 months ago (2015-04-27 20:05:40 UTC) #21
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/aa3219ce27ef5471c19670fe5145b136925cbc89 Cr-Commit-Position: refs/heads/master@{#327108}
5 years, 8 months ago (2015-04-27 20:06:25 UTC) #22
mohsen
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/1106313002/ by mohsen@chromium.org. ...
5 years, 8 months ago (2015-04-27 21:02:06 UTC) #23
mohsen
5 years, 8 months ago (2015-04-27 21:06:54 UTC) #24
Message was sent while issue was closed.
On 2015/04/27 21:02:06, mohsen wrote:
> A revert of this CL (patchset #7 id:120001) has been created in
> https://codereview.chromium.org/1106313002/ by mailto:mohsen@chromium.org.
> 
> The reason for reverting is: Caused compile error on Win x64 GN bot.

Link:
https://build.chromium.org/p/chromium.win/builders/Win%20x64%20GN/builds/653

Powered by Google App Engine
This is Rietveld 408576698