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

Issue 1286593003: [Password Manager] Store forms with field name and id attributes missing. (Closed)

Created:
5 years, 4 months ago by Pritam Nikam
Modified:
5 years, 2 months ago
Reviewers:
vivekg, dvadym
CC:
chromium-reviews, gcasto+watchlist_chromium.org, mkwst+watchlist-passwords_chromium.org, vabr+watchlist_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] Store forms with field name and id attributes missing. Currently, password form (and change password form) having no name or id attribute specified for password input field, treated as an invalid password form. And submission of such password form does not trigger "Save password" prompt. CL is split into 2 parts: [A] Allow us storing the password forms having name or id attributes missing from the fields [this patch]. [B] Allow us to autofill such password forms. With this patch we leverage the fact that for non-password forms we do not create PasswordFormManager instance. That allow us to safely drop the pre submit check for |PasswordFormManager::HasValidPasswordForm| and save the password forms that do not have name or id attributes specified for input fields. BUG=497630 TEST=PasswordFormConversionUtilsTest .IdentifyingFieldswithoutNameOrIdAttributes Committed: https://crrev.com/fdef64500de7e7cdfcc1a77ae7e82ad4a39d264f Cr-Commit-Position: refs/heads/master@{#350793}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed Vivek's Review Comments. #

Total comments: 4

Patch Set 3 : Just a code rebase. #

Patch Set 4 : Addressed Vaclav's Review Comments. #

Total comments: 6

Patch Set 5 : Addresses Vadym's inputs. #

Patch Set 6 : Just a code rebase. #

Patch Set 7 : Code rebase. #

Patch Set 8 : Addresses Vadym's inputs. #

Patch Set 9 : Fixed mac bot failure. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -125 lines) Patch
M chrome/browser/password_manager/password_manager_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +22 lines, -3 lines 0 comments Download
M components/autofill/content/renderer/password_form_conversion_utils.cc View 1 2 3 4 5 6 7 5 chunks +13 lines, -3 lines 0 comments Download
M components/autofill/content/renderer/password_form_conversion_utils_browsertest.cc View 1 2 3 4 5 2 chunks +72 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager.h View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager.cc View 1 2 3 4 5 6 1 chunk +0 lines, -10 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -99 lines 0 comments Download
M components/password_manager/core/browser/password_manager.cc View 1 2 3 4 5 6 1 chunk +0 lines, -6 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (10 generated)
Pritam Nikam
On 2015/08/12 11:49:18, Pritam Nikam wrote: > mailto:pritam.nikam@samsung.com changed reviewers: > + mailto:vivek.vg@samsung.com Hi Vivek, ...
5 years, 4 months ago (2015-08-12 11:55:37 UTC) #2
vivekg
https://codereview.chromium.org/1286593003/diff/1/chrome/test/data/password/non_password_form.html File chrome/test/data/password/non_password_form.html (right): https://codereview.chromium.org/1286593003/diff/1/chrome/test/data/password/non_password_form.html#newcode3 chrome/test/data/password/non_password_form.html:3: <input type="text" placeholder="firstname" /> nit: 2 space indent https://codereview.chromium.org/1286593003/diff/1/components/password_manager/core/browser/password_manager.h ...
5 years, 4 months ago (2015-08-14 04:35:16 UTC) #4
Pritam Nikam
Thanks Vivek for review inputs. I've incorporated these along patch set #2, ptal. Thanks! https://codereview.chromium.org/1286593003/diff/1/chrome/test/data/password/non_password_form.html ...
5 years, 4 months ago (2015-08-14 06:03:42 UTC) #5
vivekg
nit: 80 column limit for CL description.
5 years, 4 months ago (2015-08-14 06:06:25 UTC) #6
Pritam Nikam
On 2015/08/14 06:06:25, vivekg_ wrote: > nit: 80 column limit for CL description. Done. Thanks!
5 years, 4 months ago (2015-08-14 06:21:08 UTC) #7
vivekg
On 2015/08/14 at 06:21:08, pritam.nikam wrote: > On 2015/08/14 06:06:25, vivekg_ wrote: > > nit: ...
5 years, 4 months ago (2015-08-14 06:34:07 UTC) #8
Pritam Nikam
Hi Vaclav, Please have a look at this patch. I've split it in 2 parts, ...
5 years, 4 months ago (2015-08-14 06:45:27 UTC) #10
vabr (Chromium)
On 2015/08/14 06:45:27, Pritam Nikam wrote: > Hi Vaclav, > > Please have a look ...
5 years, 4 months ago (2015-08-14 13:52:49 UTC) #12
vabr (Chromium)
(@dvadym -- please have a look at the concerns I brought up) Hi Pritam Nikam, ...
5 years, 4 months ago (2015-08-15 17:23:01 UTC) #14
Pritam Nikam
Thanks Vaclav for review. I've incorporated review comments in new patchset, and also added dummy ...
5 years, 4 months ago (2015-08-18 14:04:13 UTC) #15
dvadym
Hi Pritam Nikam, Sorry for late response, I was very busy last week with finishing ...
5 years, 4 months ago (2015-08-24 13:32:08 UTC) #16
Pritam Nikam
Thanks Vadym for review inputs. > Hi Pritam Nikam, > > Sorry for late response, ...
5 years, 4 months ago (2015-08-25 09:01:10 UTC) #17
dvadym
LGTM with nits, but please don't land this CL until finishing the second CL. You ...
5 years, 3 months ago (2015-09-07 15:19:59 UTC) #19
Pritam Nikam
Thanks! Vadym. Incorporated input along new patch set. Thanks! https://codereview.chromium.org/1286593003/diff/60001/chrome/browser/password_manager/password_manager_browsertest.cc File chrome/browser/password_manager/password_manager_browsertest.cc (right): https://codereview.chromium.org/1286593003/diff/60001/chrome/browser/password_manager/password_manager_browsertest.cc#newcode913 chrome/browser/password_manager/password_manager_browsertest.cc:913: ...
5 years, 3 months ago (2015-09-08 15:09:36 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1286593003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1286593003/140001
5 years, 3 months ago (2015-09-10 09:30:18 UTC) #22
commit-bot: I haz the power
Dry run: 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/111049)
5 years, 3 months ago (2015-09-10 09:50:18 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1286593003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1286593003/160001
5 years, 2 months ago (2015-09-25 08:34:38 UTC) #27
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 2 months ago (2015-09-25 09:22:32 UTC) #28
commit-bot: I haz the power
5 years, 2 months ago (2015-09-25 09:23:01 UTC) #29
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/fdef64500de7e7cdfcc1a77ae7e82ad4a39d264f
Cr-Commit-Position: refs/heads/master@{#350793}

Powered by Google App Engine
This is Rietveld 408576698