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

Issue 2730383003: Improve autofill form matching. (Closed)

Created:
3 years, 9 months ago by sense (YandexTeam)
Modified:
3 years, 9 months ago
Reviewers:
Mathieu, sebsg
CC:
chromium-reviews, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve autofill form matching. * Fix form updating logic if the field heuristics failed but the server returned correct field types. * Remove the check for the <option> value attribute length because some websites can use it as a storage for JS-backed logic. * Add form matching using form_signature, this improves matching of forms with the empty action attribute. BUG=699004 TEST=components_unittests --gtest_filter=Autofill* R=vabr@chromium.org, mathp@chromium.org Review-Url: https://codereview.chromium.org/2730383003 Cr-Commit-Position: refs/heads/master@{#456707} Committed: https://chromium.googlesource.com/chromium/src/+/7eaf2657fde72f7cc64482cfb0d701bbaf34648a

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address review issues. #

Total comments: 1

Patch Set 3 : Move DetermineHeuristicTypes after the add. Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -58 lines) Patch
M components/autofill/core/browser/autofill_manager.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 1 2 6 chunks +39 lines, -47 lines 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 1 2 3 chunks +94 lines, -0 lines 0 comments Download
M components/autofill/core/browser/form_structure.h View 1 chunk +2 lines, -1 line 0 comments Download
M components/autofill/core/browser/form_structure.cc View 3 chunks +8 lines, -9 lines 0 comments Download
M components/autofill/core/common/autofill_data_validation.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 30 (19 generated)
sense (YandexTeam)
https://codereview.chromium.org/2730383003/diff/1/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (left): https://codereview.chromium.org/2730383003/diff/1/components/autofill/core/browser/autofill_manager.cc#oldcode1781 components/autofill/core/browser/autofill_manager.cc:1781: // Add the new or updated form to our ...
3 years, 9 months ago (2017-03-07 07:10:28 UTC) #1
vabr (Chromium)
I'm leaving for holiday shortly, so to avoid blocking this review I'm explicitly punting to ...
3 years, 9 months ago (2017-03-07 07:13:23 UTC) #2
Mathieu
Over to +sebsg, client-side goto person!
3 years, 9 months ago (2017-03-07 14:15:39 UTC) #7
sebsg
Overall looks good. I have a 2 questions see inline. Also could you please run ...
3 years, 9 months ago (2017-03-08 18:32:09 UTC) #8
sense (YandexTeam)
https://codereview.chromium.org/2730383003/diff/1/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/2730383003/diff/1/components/autofill/core/browser/autofill_manager.cc#newcode1785 components/autofill/core/browser/autofill_manager.cc:1785: return cached_form != nullptr; On 2017/03/08 18:32:08, sebsg wrote: ...
3 years, 9 months ago (2017-03-09 04:56:36 UTC) #9
sense (YandexTeam)
On 2017/03/08 18:32:09, sebsg wrote: > Overall looks good. I have a 2 questions see ...
3 years, 9 months ago (2017-03-10 05:51:08 UTC) #14
sebsg
One last small comment :) https://codereview.chromium.org/2730383003/diff/20001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/2730383003/diff/20001/components/autofill/core/browser/autofill_manager.cc#newcode1914 components/autofill/core/browser/autofill_manager.cc:1914: form_structure->DetermineHeuristicTypes(); Would you mind ...
3 years, 9 months ago (2017-03-13 12:51:22 UTC) #15
sense (YandexTeam)
On 2017/03/13 12:51:22, sebsg wrote: > One last small comment :) > > https://codereview.chromium.org/2730383003/diff/20001/components/autofill/core/browser/autofill_manager.cc > ...
3 years, 9 months ago (2017-03-14 09:27:58 UTC) #24
sebsg
LGTM!
3 years, 9 months ago (2017-03-14 15:07:30 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2730383003/40001
3 years, 9 months ago (2017-03-14 15:27:26 UTC) #27
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 15:35:38 UTC) #30
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/7eaf2657fde72f7cc64482cfb0d7...

Powered by Google App Engine
This is Rietveld 408576698