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

Issue 2740523002: [Password Manager] Fix saving for accounts.google.com. (Closed)

Created:
3 years, 9 months ago by dvadym
Modified:
3 years, 9 months ago
CC:
chromium-reviews, gcasto+watchlist_chromium.org, alemate+watch_chromium.org, achuith+watch_chromium.org, vabr+watchlistpasswordmanager_chromium.org, vabr+watchlistlogin_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Password Manager] Fix saving for accounts.google.com. Saving on accounts.google.com doesn't work, the reasons are the following: The sign-in form is loaded on https://accounts.google.com/ServiceLogin, but then when the submission is done, url is https://accounts.google.com/signin/v2/challenge/pwd , so loaded form and the submitted form are considered as different forms, and the Password Manager thinks that the submitted form was not seen during adding to DOM, and such forms are skipped since Password Manager can't fill forms that can't be seen (and no point to save password, that can't be filled). But this is legitimate site behaviour This CL implements checking whether loaded and submitted forms come from the same frame (a frame is represented with a driver in Password Manager code). BUG=699097 Review-Url: https://codereview.chromium.org/2740523002 Cr-Commit-Position: refs/heads/master@{#456674} Committed: https://chromium.googlesource.com/chromium/src/+/411333039edf0a1cfa7ecd505a979af3015545f2

Patch Set 1 #

Patch Set 2 : Added tests, pretifying #

Total comments: 4

Patch Set 3 : Remove commented line #

Total comments: 7

Patch Set 4 : Renamed flag #

Patch Set 5 : test fixed #

Patch Set 6 : compilation fix #

Total comments: 10

Patch Set 7 : Addressed comments #

Total comments: 4

Patch Set 8 : Small coments fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -39 lines) Patch
M chrome/browser/ui/login/login_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/password_form_manager.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager.cc View 1 2 3 4 chunks +16 lines, -5 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager_unittest.cc View 1 2 3 4 5 6 9 chunks +47 lines, -19 lines 0 comments Download
M components/password_manager/core/browser/password_manager.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -1 line 0 comments Download
M components/password_manager/core/browser/password_manager.cc View 1 2 3 4 5 7 chunks +10 lines, -7 lines 0 comments Download
M components/password_manager/core/browser/password_manager_unittest.cc View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 33 (17 generated)
dvadym
Hi Vasilii, Could you please review this CL? Regards, Vadym
3 years, 9 months ago (2017-03-07 14:49:30 UTC) #4
vasilii
Can you clarify the scenario? The second form lives in another iFrame and it's submitted? ...
3 years, 9 months ago (2017-03-07 16:09:34 UTC) #6
dvadym
No second form, it's just the same <form>, but origin of iframe was changed from ...
3 years, 9 months ago (2017-03-08 11:53:18 UTC) #7
vasilii
A couple of questions below. I'm still struggling to understand what DoesManage really means. Maybe ...
3 years, 9 months ago (2017-03-08 17:18:50 UTC) #8
dvadym
DoesManage(PasswordForm form) tries to check that |form| is equal |observed_form|. The problems are that PasswordForm ...
3 years, 9 months ago (2017-03-09 12:42:03 UTC) #9
vasilii
I see. I am still uncomfortable with calling the PFM origin matching when it's not. ...
3 years, 9 months ago (2017-03-10 14:04:12 UTC) #10
vasilii
lgtm
3 years, 9 months ago (2017-03-10 17:26:32 UTC) #11
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/2740523002/80001
3 years, 9 months ago (2017-03-10 17:27:23 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/338053) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 9 months ago (2017-03-10 17:32:57 UTC) #15
dvadym
Hi Vaclav, could you please review changes in chrome/browser/ui/login/login_handler.cc ? Regards, Vadym
3 years, 9 months ago (2017-03-13 15:23:59 UTC) #19
vabr (Chromium)
LGTM with comments. Thanks for fixing the issue! Vaclav https://codereview.chromium.org/2740523002/diff/100001/components/password_manager/core/browser/password_form_manager.cc File components/password_manager/core/browser/password_form_manager.cc (left): https://codereview.chromium.org/2740523002/diff/100001/components/password_manager/core/browser/password_form_manager.cc#oldcode375 components/password_manager/core/browser/password_form_manager.cc:375: ...
3 years, 9 months ago (2017-03-13 17:36:28 UTC) #22
dvadym
Thanks for review Vaclav! https://codereview.chromium.org/2740523002/diff/100001/components/password_manager/core/browser/password_form_manager.cc File components/password_manager/core/browser/password_form_manager.cc (left): https://codereview.chromium.org/2740523002/diff/100001/components/password_manager/core/browser/password_form_manager.cc#oldcode375 components/password_manager/core/browser/password_form_manager.cc:375: DCHECK_NE(RESULT_NO_MATCH, DoesManage(credentials)); On 2017/03/13 17:36:28, ...
3 years, 9 months ago (2017-03-14 09:56:38 UTC) #24
vabr (Chromium)
Still some minor nits, still LGTM. :) https://codereview.chromium.org/2740523002/diff/100001/components/password_manager/core/browser/password_form_manager.cc File components/password_manager/core/browser/password_form_manager.cc (left): https://codereview.chromium.org/2740523002/diff/100001/components/password_manager/core/browser/password_form_manager.cc#oldcode375 components/password_manager/core/browser/password_form_manager.cc:375: DCHECK_NE(RESULT_NO_MATCH, DoesManage(credentials)); ...
3 years, 9 months ago (2017-03-14 10:31:57 UTC) #26
dvadym
https://codereview.chromium.org/2740523002/diff/100001/components/password_manager/core/browser/password_form_manager.cc File components/password_manager/core/browser/password_form_manager.cc (left): https://codereview.chromium.org/2740523002/diff/100001/components/password_manager/core/browser/password_form_manager.cc#oldcode375 components/password_manager/core/browser/password_form_manager.cc:375: DCHECK_NE(RESULT_NO_MATCH, DoesManage(credentials)); On 2017/03/14 10:31:57, vabr (Chromium) wrote: > ...
3 years, 9 months ago (2017-03-14 10:45:56 UTC) #27
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/2740523002/140001
3 years, 9 months ago (2017-03-14 11:30:28 UTC) #30
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 12:15:52 UTC) #33
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/411333039edf0a1cfa7ecd505a97...

Powered by Google App Engine
This is Rietveld 408576698