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

Issue 293093002: Don't show "Save password" prompt for a failed login (Closed)

Created:
6 years, 7 months ago by ziran.sun
Modified:
6 years, 6 months ago
CC:
chromium-reviews, benquan, jam, browser-components-watch_chromium.org, darin-cc_chromium.org, Dane Wallinga, dyu1, mkwst+watchlist_chromium.org, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Don't show Save password prompt for a failed login. A login page that has two |WebFrame|s, one is for login and the other is not related to login. When the user enters wrong login credentials and submits the form, he is navigated to the failed login page. At this point, Chrome (mistakenly) compares the state of initial site with the irrelevant |WebFrame|'s, and since the irrelevant |WebFrame| doesn't have any login forms, Chrome assumes that this is a successful login. We record all visible forms seen during a page load, in all frames of the page. When the page stops loading, the password manager checks if one of the recorded forms matches the login form from the previous page. "Save password" prompt is only shown when a matched form is found. R=vabr@chromium.org, gcasto@chromium.org, isherman@chromium.org, tsepez@chromium.org BUG=177260, 344299 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279123

Patch Set 1 #

Patch Set 2 : Clean code and add tests. #

Patch Set 3 : Rebase #

Total comments: 7

Patch Set 4 : Update code as per vabr's review comments. #

Patch Set 5 : Documentation update. #

Total comments: 6

Patch Set 6 : Update code as per vabr's further review comments. #

Patch Set 7 : Add missed filed from last upload. #

Total comments: 2

Patch Set 8 : Use exising done.html file for the test case that a iframe doesn't contain any form. #

Total comments: 1

Patch Set 9 : Update code as per Ilya's review comments. #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -63 lines) Patch
M chrome/browser/password_manager/password_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +39 lines, -0 lines 0 comments Download
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/password/done.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/data/password/multi_frames.html View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M components/autofill/content/common/autofill_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -3 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 2 3 4 5 6 7 8 9 4 chunks +8 lines, -1 line 0 comments Download
M components/password_manager/core/browser/password_manager.h View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -1 line 0 comments Download
M components/password_manager/core/browser/password_manager.cc View 1 2 3 4 5 6 7 8 9 2 chunks +43 lines, -31 lines 0 comments Download
M components/password_manager/core/browser/password_manager_unittest.cc View 1 2 3 4 5 6 7 22 chunks +33 lines, -25 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
ziran.sun
Please review. Thanks!
6 years, 7 months ago (2014-05-23 10:46:30 UTC) #1
vabr (Chromium)
Thanks for working on this! A couple of comments in addition to those code-bound below: ...
6 years, 7 months ago (2014-05-23 12:18:36 UTC) #2
ziran.sun
On 2014/05/23 12:18:36, vabr (Chromium) wrote: > Thanks for working on this! > > A ...
6 years, 6 months ago (2014-06-06 16:10:47 UTC) #3
vabr (Chromium)
Hi, Sorry for the delay, Monday was a public holiday in where I work. On ...
6 years, 6 months ago (2014-06-10 12:05:36 UTC) #4
ziran.sun
On 2014/06/10 12:05:36, vabr (Chromium) wrote: > Hi, > > Sorry for the delay, Monday ...
6 years, 6 months ago (2014-06-10 12:48:52 UTC) #5
vabr (Chromium)
On 2014/06/10 12:48:52, ziran.sun wrote: > On 2014/06/10 12:05:36, vabr (Chromium) wrote: > > Hi, ...
6 years, 6 months ago (2014-06-10 13:03:43 UTC) #6
ziran.sun
On 2014/06/10 13:03:43, vabr (Chromium) wrote: > On 2014/06/10 12:48:52, ziran.sun wrote: > > On ...
6 years, 6 months ago (2014-06-10 17:02:22 UTC) #7
vabr (Chromium)
Hi, > In http://www.moneycontrol.com given by http://crbug.com/338650, if you login with wrong credentials, then refresh ...
6 years, 6 months ago (2014-06-11 08:22:12 UTC) #8
ziran.sun
On 2014/06/11 08:22:12, vabr (Chromium) wrote: > Hi, > > > In http://www.moneycontrol.com given by ...
6 years, 6 months ago (2014-06-12 14:52:24 UTC) #9
ziran.sun
Updated code as per vabr's review comments. Please review. Thanks!
6 years, 6 months ago (2014-06-12 15:01:38 UTC) #10
ziran.sun
Added OWNERs in reviewer list. Thanks.
6 years, 6 months ago (2014-06-12 15:11:00 UTC) #11
Tom Sepez
What are the implications if the frames are cross-origin, e.g. site A is framing a ...
6 years, 6 months ago (2014-06-12 18:45:28 UTC) #12
vabr (Chromium)
Thanks for improving the tests, ziran.sun! LGTM. Tom, > What are the implications if the ...
6 years, 6 months ago (2014-06-13 08:12:44 UTC) #13
ziran.sun
On 2014/06/13 08:12:44, vabr (Chromium) wrote: > Thanks for improving the tests, ziran.sun! LGTM. > ...
6 years, 6 months ago (2014-06-13 10:57:18 UTC) #14
ziran.sun
Update test code as per Vaclav's suggestion. https://codereview.chromium.org/293093002/diff/120001/chrome/test/data/password/multi_frames.html File chrome/test/data/password/multi_frames.html (right): https://codereview.chromium.org/293093002/diff/120001/chrome/test/data/password/multi_frames.html#newcode4 chrome/test/data/password/multi_frames.html:4: <iframe src="no_form.html" ...
6 years, 6 months ago (2014-06-13 10:58:26 UTC) #15
Tom Sepez
Messages LGTM.
6 years, 6 months ago (2014-06-13 18:06:49 UTC) #16
Ilya Sherman
LGTM. Sorry, I didn't realize that you were waiting for my review!
6 years, 6 months ago (2014-06-20 20:30:32 UTC) #17
Ilya Sherman
Actually, LGTM with a nit: (I only looked at the *autofill/* changes) https://codereview.chromium.org/293093002/diff/140001/components/autofill/content/common/autofill_messages.h File components/autofill/content/common/autofill_messages.h ...
6 years, 6 months ago (2014-06-20 20:31:45 UTC) #18
ziran.sun
The CQ bit was checked by ziran.sun@samsung.com
6 years, 6 months ago (2014-06-23 14:09:34 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ziran.sun@samsung.com/293093002/180001
6 years, 6 months ago (2014-06-23 14:10:11 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 6 months ago (2014-06-23 15:59:05 UTC) #21
commit-bot: I haz the power
6 years, 6 months ago (2014-06-23 16:59:22 UTC) #22
Message was sent while issue was closed.
Change committed as 279123

Powered by Google App Engine
This is Rietveld 408576698