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

Issue 1656005: Fix password mgr heuristics for sites that keep the login form around after signin (Closed)

Created:
10 years, 8 months ago by Jens Alfke
Modified:
9 years, 7 months ago
CC:
chromium-reviews, jam+cc_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, ben+cc_chromium.org, nkostylev+cc_chromium.org, davemoore+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix password mgr heuristics for sites that keep the login form around after signin The test for whether the login form reappeared on the next page load now ignores invisible forms. BUG=28911 TEST=none (manual testing with reduced web pages) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=45841

Patch Set 1 #

Patch Set 2 : Fixed error introduced in cleanup #

Total comments: 6

Patch Set 3 : Changed the messages and their timing. #

Total comments: 6

Patch Set 4 : Added unit test. #

Patch Set 5 : Minor fix to test #

Total comments: 9

Patch Set 6 : Responding to feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -46 lines) Patch
M chrome/browser/chromeos/login/account_creation_view.cc View 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/login_prompt.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/password_manager.h View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/password_manager/password_manager.cc View 1 2 3 2 chunks +20 lines, -14 lines 0 comments Download
M chrome/browser/password_manager/password_manager_unittest.cc View 4 5 5 chunks +62 lines, -7 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 2 3 4 5 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host_delegate.h View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M chrome/renderer/render_view.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 5 4 chunks +19 lines, -10 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Jens Alfke
See implementation notes in the bug report. FYI, this code will not yet compile on ...
10 years, 8 months ago (2010-04-15 20:03:03 UTC) #1
tim (not reviewing)
http://codereview.chromium.org/1656005/diff/2001/3003 File chrome/browser/password_manager/password_manager.h (right): http://codereview.chromium.org/1656005/diff/2001/3003#newcode49 chrome/browser/password_manager/password_manager.h:49: const std::vector<uint8>& visible); Why not put this into PasswordForm? ...
10 years, 8 months ago (2010-04-19 23:11:01 UTC) #2
Jens Alfke
http://codereview.chromium.org/1656005/diff/2001/3003 File chrome/browser/password_manager/password_manager.h (right): http://codereview.chromium.org/1656005/diff/2001/3003#newcode49 chrome/browser/password_manager/password_manager.h:49: const std::vector<uint8>& visible); On 2010/04/19 23:11:01, timsteele wrote: > ...
10 years, 8 months ago (2010-04-19 23:29:59 UTC) #3
tim (not reviewing)
http://codereview.chromium.org/1656005/diff/2001/3003 File chrome/browser/password_manager/password_manager.h (right): http://codereview.chromium.org/1656005/diff/2001/3003#newcode49 chrome/browser/password_manager/password_manager.h:49: const std::vector<uint8>& visible); On 2010/04/19 23:30:00, Jens Alfke wrote: ...
10 years, 8 months ago (2010-04-20 00:04:39 UTC) #4
Jens Alfke
OK, I have restructured the code: * There is no longer an extra parameter to ...
10 years, 8 months ago (2010-04-20 22:59:07 UTC) #5
Jens Alfke
OK, I have added a unit test now. Thanks for adding the test code!
10 years, 8 months ago (2010-04-26 18:34:03 UTC) #6
tim (not reviewing)
http://codereview.chromium.org/1656005/diff/10001/11001 File chrome/browser/chromeos/login/account_creation_view.cc (right): http://codereview.chromium.org/1656005/diff/10001/11001#newcode57 chrome/browser/chromeos/login/account_creation_view.cc:57: // becuase password value is always empty for account ...
10 years, 8 months ago (2010-04-26 23:10:00 UTC) #7
Jens Alfke
OK, I have uploaded a new draft incorporating these points. http://codereview.chromium.org/1656005/diff/10001/11001 File chrome/browser/chromeos/login/account_creation_view.cc (right): http://codereview.chromium.org/1656005/diff/10001/11001#newcode57 ...
10 years, 8 months ago (2010-04-26 23:58:57 UTC) #8
tim (not reviewing)
10 years, 8 months ago (2010-04-27 00:55:58 UTC) #9
LGTM! Thanks for fixing this!

http://codereview.chromium.org/1656005/diff/10001/11004
File chrome/browser/password_manager/password_manager.h (right):

http://codereview.chromium.org/1656005/diff/10001/11004#newcode70
chrome/browser/password_manager/password_manager.h:70: // 1. form "seen"
On 2010/04/26 23:58:57, Jens Alfke wrote:
> On 2010/04/26 23:10:01, timsteele wrote:
> > can you update this ascii art?
> 
> I don't know what's wrong with it. The "layout" looks OK to me...

hm, I guess you're right.  I wrote that comment before having totally understood
the scope of changes, basically was looking for "forms visible" to be
incorporated, but I don't think that's necessary.

http://codereview.chromium.org/1656005/diff/20001/21003
File chrome/browser/password_manager/password_manager.cc (right):

http://codereview.chromium.org/1656005/diff/20001/21003#newcode135
chrome/browser/password_manager/password_manager.cc:135:
pending_login_managers_.push_back(manager);
On 2010/04/26 23:58:57, Jens Alfke wrote:
> On 2010/04/26 23:10:01, timsteele wrote:
> > can't this result in storing two PasswordFormManagers for a single form?
> 
> You mean for the form that already has the provisional_save_manager_? Yes,
there
> would be a second one. I couldn't see how to get around this because the same
> manager object can't appear in both places, since the class isn't ref-counted.
> Is it bad to have to objects? I didn't notice anything going wrong in my
> testing.

Okay, I see.. this part didn't change... just the part to postpone failure
detection.  Looks fine.

Powered by Google App Engine
This is Rietveld 408576698