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

Issue 2318533002: [Password Generation] Use signatures for form matching (Closed)

Created:
4 years, 3 months ago by kolos1
Modified:
4 years, 3 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, rouslan+autofill_chromium.org, jam, browser-components-watch_chromium.org, yzshen+watch_chromium.org, jdonnelly+autofillwatch_chromium.org, Aaron Boodman, darin-cc_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, darin (slow to review), abarth-chromium, gcasto+watchlist_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Password Generation] Use signatures for form matching At this time, the form matching is based on form name and action. Action should have canonical form and be non-empty. We missed to prepare actions in some cases. So, even if we classified a field as suitable for password generation, we didn't show generation popup, because form matching failed. It should be fixed. Since the server sends signatures of form and fields, it is more error-prone to match forms based on what server works with. BUG=582434 Committed: https://crrev.com/e10ec8251677a375303d28f8941b7609fde23623 Cr-Commit-Position: refs/heads/master@{#420043}

Patch Set 1 : Sent for outline review #

Patch Set 2 : Sent to review #

Total comments: 21

Patch Set 3 : Changes addressed to reviewers' comments #

Total comments: 4

Patch Set 4 : Include fix addressed to reviewer comment #

Patch Set 5 : Compilation fix: AutofillField.FieldSignature() renamed to GetFieldSignature() #

Total comments: 1

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+359 lines, -272 lines) Patch
M chrome/renderer/autofill/password_generation_test_utils.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M components/autofill/content/public/cpp/autofill_types_struct_traits.h View 1 chunk +4 lines, -8 lines 0 comments Download
M components/autofill/content/public/cpp/autofill_types_struct_traits.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M components/autofill/content/public/cpp/autofill_types_struct_traits_unittest.cc View 3 chunks +7 lines, -4 lines 0 comments Download
M components/autofill/content/public/interfaces/autofill_types.mojom View 1 chunk +2 lines, -3 lines 0 comments Download
M components/autofill/content/renderer/password_generation_agent.cc View 1 2 3 4 5 4 chunks +20 lines, -16 lines 0 comments Download
M components/autofill/core/browser/autofill_download_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/autofill_download_manager_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_field.h View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M components/autofill/core/browser/autofill_field.cc View 1 2 3 4 3 chunks +6 lines, -16 lines 0 comments Download
M components/autofill/core/browser/autofill_field_unittest.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/form_field.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/browser/form_structure.h View 1 2 5 chunks +8 lines, -13 lines 0 comments Download
M components/autofill/core/browser/form_structure.cc View 1 2 3 4 14 chunks +18 lines, -77 lines 0 comments Download
M components/autofill/core/browser/form_structure_unittest.cc View 4 chunks +14 lines, -14 lines 0 comments Download
M components/autofill/core/common/BUILD.gn View 1 chunk +3 lines, -0 lines 0 comments Download
A + components/autofill/core/common/DEPS View 0 chunks +-1 lines, --1 lines 0 comments Download
M components/autofill/core/common/autofill_util.h View 2 chunks +9 lines, -0 lines 0 comments Download
M components/autofill/core/common/autofill_util.cc View 1 chunk +27 lines, -0 lines 0 comments Download
M components/autofill/core/common/form_field_data.h View 1 chunk +0 lines, -6 lines 0 comments Download
M components/autofill/core/common/form_field_data.cc View 2 chunks +1 line, -23 lines 0 comments Download
M components/autofill/core/common/form_field_data_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/common/password_form_generation_data.h View 1 2 2 chunks +9 lines, -8 lines 0 comments Download
A components/autofill/core/common/signatures_util.h View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
A components/autofill/core/common/signatures_util.cc View 1 2 1 chunk +107 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/browser_save_password_progress_logger.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager_unittest.cc View 8 chunks +18 lines, -17 lines 0 comments Download
M components/password_manager/core/browser/password_generation_manager.cc View 1 2 3 4 5 2 chunks +2 lines, -22 lines 0 comments Download
M components/password_manager/core/browser/password_generation_manager_unittest.cc View 6 chunks +25 lines, -15 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 50 (32 generated)
kolos1
Hi Vadym, Please take a look at the design before I polish this CL. Thank ...
4 years, 3 months ago (2016-09-07 08:46:50 UTC) #2
kolos1
On 2016/09/07 08:46:50, kolos1 wrote: > Hi Vadym, > > Please take a look at ...
4 years, 3 months ago (2016-09-07 08:49:43 UTC) #3
kolos1
dcheng@: Please review changes in autofill_types_struct_traits* autofill_types.mojom vabr@chromium.org: Please review changes in the rest of ...
4 years, 3 months ago (2016-09-07 14:44:45 UTC) #15
vabr (Chromium)
LGTM with a few comments. Cheers, Vaclav https://codereview.chromium.org/2318533002/diff/210001/components/autofill/core/browser/autofill_field.cc File components/autofill/core/browser/autofill_field.cc (right): https://codereview.chromium.org/2318533002/diff/210001/components/autofill/core/browser/autofill_field.cc#newcode14 components/autofill/core/browser/autofill_field.cc:14: #include "base/sha1.h" ...
4 years, 3 months ago (2016-09-07 16:18:06 UTC) #16
dvadym
LGTM, thanks for fixing this! https://codereview.chromium.org/2318533002/diff/210001/components/autofill/content/renderer/password_generation_agent.cc File components/autofill/content/renderer/password_generation_agent.cc (right): https://codereview.chromium.org/2318533002/diff/210001/components/autofill/content/renderer/password_generation_agent.cc#newcode65 components/autofill/content/renderer/password_generation_agent.cc:65: FormSignature form_signature = CalculateFormSignature(form.form_data); ...
4 years, 3 months ago (2016-09-07 17:29:35 UTC) #17
dcheng
https://codereview.chromium.org/2318533002/diff/210001/components/autofill/core/common/password_form_generation_data.h File components/autofill/core/common/password_form_generation_data.h (right): https://codereview.chromium.org/2318533002/diff/210001/components/autofill/core/common/password_form_generation_data.h#newcode20 components/autofill/core/common/password_form_generation_data.h:20: FormSignature form_signature; This (or the mojom or both) needs ...
4 years, 3 months ago (2016-09-07 19:56:39 UTC) #18
kolos1
thakis@: please review changes in components/autofill/core/common/DEPS. Thank you. vabr@, dcheng@: review changes addressed to your ...
4 years, 3 months ago (2016-09-08 08:34:28 UTC) #19
vabr (Chromium)
lgtm https://codereview.chromium.org/2318533002/diff/230001/components/autofill/core/common/signatures_util.h File components/autofill/core/common/signatures_util.h (right): https://codereview.chromium.org/2318533002/diff/230001/components/autofill/core/common/signatures_util.h#newcode11 components/autofill/core/common/signatures_util.h:11: #include <vector> You don't seem to need <vector> ...
4 years, 3 months ago (2016-09-08 09:13:24 UTC) #20
kolos1
https://codereview.chromium.org/2318533002/diff/230001/components/autofill/core/common/signatures_util.h File components/autofill/core/common/signatures_util.h (right): https://codereview.chromium.org/2318533002/diff/230001/components/autofill/core/common/signatures_util.h#newcode11 components/autofill/core/common/signatures_util.h:11: #include <vector> On 2016/09/08 09:13:24, vabr (Chromium) wrote: > ...
4 years, 3 months ago (2016-09-08 09:41:39 UTC) #21
vabr (Chromium)
lgtm
4 years, 3 months ago (2016-09-08 10:14:42 UTC) #22
kolos1
thakis@: please review changes in components/autofill/core/common/DEPS. Thank you.
4 years, 3 months ago (2016-09-08 11:00:29 UTC) #24
kolos1
thakis@ and dcheng@: friendly ping, please review changes. Thank you. Regards, Maxim
4 years, 3 months ago (2016-09-09 07:36:37 UTC) #25
Nico
deps lgtm https://codereview.chromium.org/2318533002/diff/270001/components/autofill/core/common/form_field_data.cc File components/autofill/core/common/form_field_data.cc (right): https://codereview.chromium.org/2318533002/diff/270001/components/autofill/core/common/form_field_data.cc#newcode10 components/autofill/core/common/form_field_data.cc:10: #include "components/autofill/core/common/autofill_util.h" fwiw we generally discourage "util" ...
4 years, 3 months ago (2016-09-09 16:29:23 UTC) #35
dcheng
mojom lgtm
4 years, 3 months ago (2016-09-09 17:08:33 UTC) #36
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/2318533002/270001
4 years, 3 months ago (2016-09-12 07:31:32 UTC) #39
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/2318533002/290001
4 years, 3 months ago (2016-09-21 12:13:38 UTC) #47
commit-bot: I haz the power
Committed patchset #6 (id:290001)
4 years, 3 months ago (2016-09-21 14:03:43 UTC) #48
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 14:05:47 UTC) #50
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e10ec8251677a375303d28f8941b7609fde23623
Cr-Commit-Position: refs/heads/master@{#420043}

Powered by Google App Engine
This is Rietveld 408576698