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

Issue 1883183002: [Password Manager] HTML parsing based client-side form type classifier (Closed)

Created:
4 years, 8 months ago by kolos1
Modified:
4 years, 6 months ago
Reviewers:
vabr (Chromium), dvadym
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, vabr+watchlistpasswordmanager_chromium.org, rouslan+autofill_chromium.org, jam, blink-reviews, 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, gcasto+watchlist_chromium.org, vabr+watchlistautofill_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Password Manager] HTML parsing based client-side form type classifier This CL introduces the classifier that detects forms where password generation should be offered (i.e. signup and change password forms). BUG=582434 Committed: https://crrev.com/1a8666ef27c1fbee0f0d57a79b533dc51ba6e605 Cr-Commit-Position: refs/heads/master@{#399899}

Patch Set 1 #

Patch Set 2 : Fields number and text features. #

Patch Set 3 : Testing system #

Patch Set 4 : #

Patch Set 5 : Baseline 4 #

Patch Set 6 : Only id/name, only visible elements #

Patch Set 7 : Smart parent checking. All attributes #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : Moved the classifier to new files #

Patch Set 12 : Reseted unrelated files to origin/master #

Patch Set 13 : Reseted unrelated files to origin/master 2 #

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : The patch sent to reviewer #

Patch Set 19 : Changed the signature of ClassifyFormAndFindGenerationField #

Total comments: 50

Patch Set 20 : Changes addressed to reviewer comments #

Total comments: 5

Patch Set 21 : Changes addressed to reviewers' comments 2 #

Total comments: 2

Patch Set 22 : Don't check the ancestors of <form> #

Patch Set 23 : Check <form>'s attributes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+520 lines, -0 lines) Patch
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
A chrome/renderer/autofill/form_classifier_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +236 lines, -0 lines 0 comments Download
M components/autofill.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
A components/autofill/content/renderer/form_classifier.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +14 lines, -0 lines 0 comments Download
A components/autofill/content/renderer/form_classifier.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +265 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (12 generated)
kolos1
Hi Vaclav, Please review HTML parsing based form classifier. In this CL, there is no ...
4 years, 6 months ago (2016-06-08 14:52:07 UTC) #3
vabr (Chromium)
On 2016/06/08 14:52:07, kolos1 wrote: > Hi Vaclav, > > Please review HTML parsing based ...
4 years, 6 months ago (2016-06-08 16:09:24 UTC) #4
dvadym
https://codereview.chromium.org/1883183002/diff/380001/components/autofill/content/renderer/form_classifier.cc File components/autofill/content/renderer/form_classifier.cc (right): https://codereview.chromium.org/1883183002/diff/380001/components/autofill/content/renderer/form_classifier.cc#newcode61 components/autofill/content/renderer/form_classifier.cc:61: for (char d : kCharactersToBeRemoved) Can we use regexp ...
4 years, 6 months ago (2016-06-09 12:41:00 UTC) #7
kolos1
https://codereview.chromium.org/1883183002/diff/380001/components/autofill/content/renderer/form_classifier.cc File components/autofill/content/renderer/form_classifier.cc (right): https://codereview.chromium.org/1883183002/diff/380001/components/autofill/content/renderer/form_classifier.cc#newcode61 components/autofill/content/renderer/form_classifier.cc:61: for (char d : kCharactersToBeRemoved) On 2016/06/09 12:40:59, dvadym ...
4 years, 6 months ago (2016-06-10 12:18:08 UTC) #8
vabr (Chromium)
Hi Maxim, This looks mostly good to me, but I am concerned about the performance. ...
4 years, 6 months ago (2016-06-10 13:22:12 UTC) #9
dvadym
https://codereview.chromium.org/1883183002/diff/380001/components/autofill/content/renderer/form_classifier.cc File components/autofill/content/renderer/form_classifier.cc (right): https://codereview.chromium.org/1883183002/diff/380001/components/autofill/content/renderer/form_classifier.cc#newcode117 components/autofill/content/renderer/form_classifier.cc:117: CR_DEFINE_STATIC_LOCAL(WebString, kButton, ("button")); On 2016/06/10 12:18:08, kolos1 wrote: > ...
4 years, 6 months ago (2016-06-10 14:12:10 UTC) #10
vabr (Chromium)
https://codereview.chromium.org/1883183002/diff/400001/components/autofill/content/renderer/form_classifier.cc File components/autofill/content/renderer/form_classifier.cc (right): https://codereview.chromium.org/1883183002/diff/400001/components/autofill/content/renderer/form_classifier.cc#newcode58 components/autofill/content/renderer/form_classifier.cc:58: RE2::GlobalReplace(&filtered_value, kCharactersToBeRemoved, ""); On 2016/06/10 14:12:09, dvadym wrote: > ...
4 years, 6 months ago (2016-06-10 14:32:14 UTC) #11
dvadym
https://codereview.chromium.org/1883183002/diff/400001/components/autofill/content/renderer/form_classifier.cc File components/autofill/content/renderer/form_classifier.cc (right): https://codereview.chromium.org/1883183002/diff/400001/components/autofill/content/renderer/form_classifier.cc#newcode58 components/autofill/content/renderer/form_classifier.cc:58: RE2::GlobalReplace(&filtered_value, kCharactersToBeRemoved, ""); On 2016/06/10 14:32:14, vabr (Chromium) wrote: ...
4 years, 6 months ago (2016-06-10 15:05:16 UTC) #12
kolos1
Hi Vadym and Vaclav, Great thanks for your comments. I made some fixes and tested ...
4 years, 6 months ago (2016-06-13 14:27:34 UTC) #15
vabr (Chromium)
Thank you, Maxim! Your changes LGTM, and I'm glad you plan to talk about Blink ...
4 years, 6 months ago (2016-06-13 16:01:57 UTC) #16
vabr (Chromium)
On 2016/06/13 16:01:57, vabr (Chromium) wrote: > Thank you, Maxim! > > Your changes LGTM, ...
4 years, 6 months ago (2016-06-13 16:02:49 UTC) #17
dvadym
Thanks! LGTM % perfomance questions of FindTextFeaturesInFormAndItsAncestors and correctness of using Blink API (I'm not ...
4 years, 6 months ago (2016-06-13 17:25:21 UTC) #18
kolos1
esprehn@: FYI, this is the form classifier I mentioned in chat.
4 years, 6 months ago (2016-06-14 09:11:35 UTC) #20
esprehn
On 2016/06/14 at 09:11:35, kolos wrote: > esprehn@: FYI, this is the form classifier I ...
4 years, 6 months ago (2016-06-14 09:31:28 UTC) #21
kolos1
On 2016/06/14 09:31:28, esprehn wrote: > On 2016/06/14 at 09:11:35, kolos wrote: > > esprehn@: ...
4 years, 6 months ago (2016-06-14 09:39:21 UTC) #22
kolos1
Hi Vaclav, I removed checking attributes of the ancestors of <form>. Now the classifier uses ...
4 years, 6 months ago (2016-06-15 14:15:16 UTC) #24
vabr (Chromium)
Thank you, Maxim, LGTM, this removed my concern about performance. Cheers, Vaclav
4 years, 6 months ago (2016-06-15 14:18:13 UTC) #25
vabr (Chromium)
https://codereview.chromium.org/1883183002/#ps480002 LGTM
4 years, 6 months ago (2016-06-15 14:50:34 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1883183002/480002
4 years, 6 months ago (2016-06-15 14:53:11 UTC) #29
commit-bot: I haz the power
Committed patchset #23 (id:480002)
4 years, 6 months ago (2016-06-15 15:37:17 UTC) #31
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-15 15:37:43 UTC) #32
commit-bot: I haz the power
4 years, 6 months ago (2016-06-15 15:39:11 UTC) #34
Message was sent while issue was closed.
Patchset 23 (id:??) landed as
https://crrev.com/1a8666ef27c1fbee0f0d57a79b533dc51ba6e605
Cr-Commit-Position: refs/heads/master@{#399899}

Powered by Google App Engine
This is Rietveld 408576698