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

Issue 12713007: Fix the no password save issue for ajax login (Closed)

Created:
7 years, 9 months ago by Garrett Casto
Modified:
7 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, guohui, Yue Zhang
Visibility:
Public.

Description

Fix the no password save issue for ajax login The idea is that if a navigation is triggered by non-user gesture after a password form is submitted, then we assume that this navigation is related to the previous form submit and chrome should prompt for saving password if all criteria for provisionally saving password are met. The link between the previous form submit and the coming navigation is weak, so its possible for chrome to inherit password forms from previous state when it should not. However most false cases would be aborted at PasswordManager::ProvisionallySavePassword, which does a list of sanity checks for saving password, such as if the form is already seen on the current page. BUG=43219 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=191024

Patch Set 1 #

Total comments: 33

Patch Set 2 : Address comments. #

Patch Set 3 : Remove dead code #

Total comments: 4

Patch Set 4 : More comments #

Patch Set 5 : Remove unneeded test variable #

Total comments: 6

Patch Set 6 : Address more comments #

Patch Set 7 : Again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -1 line) Patch
A chrome/browser/password_manager/password_manager_browsertest.cc View 1 2 3 4 1 chunk +129 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/test/data/password/password_xhr_done.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/password/password_xhr_submit.html View 1 1 chunk +27 lines, -0 lines 0 comments Download
M content/public/renderer/document_state.h View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Garrett Casto
7 years, 9 months ago (2013-03-21 23:17:58 UTC) #1
Ilya Sherman
https://codereview.chromium.org/12713007/diff/1/chrome/browser/password_manager/password_manager_browsertest.cc File chrome/browser/password_manager/password_manager_browsertest.cc (right): https://codereview.chromium.org/12713007/diff/1/chrome/browser/password_manager/password_manager_browsertest.cc#newcode1 chrome/browser/password_manager/password_manager_browsertest.cc:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
7 years, 9 months ago (2013-03-22 03:26:48 UTC) #2
Garrett Casto
https://codereview.chromium.org/12713007/diff/1/chrome/browser/password_manager/password_manager_browsertest.cc File chrome/browser/password_manager/password_manager_browsertest.cc (right): https://codereview.chromium.org/12713007/diff/1/chrome/browser/password_manager/password_manager_browsertest.cc#newcode1 chrome/browser/password_manager/password_manager_browsertest.cc:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
7 years, 9 months ago (2013-03-22 21:05:05 UTC) #3
Charlie Reis
Thanks for adding the test and comments! https://codereview.chromium.org/12713007/diff/21001/content/public/renderer/document_state.h File content/public/renderer/document_state.h (right): https://codereview.chromium.org/12713007/diff/21001/content/public/renderer/document_state.h#newcode173 content/public/renderer/document_state.h:173: // navigation ...
7 years, 9 months ago (2013-03-23 01:00:26 UTC) #4
Ilya Sherman
Thanks, LGTM (but please wait for other reviewers as well). https://codereview.chromium.org/12713007/diff/1/chrome/browser/password_manager/password_manager_browsertest.cc File chrome/browser/password_manager/password_manager_browsertest.cc (right): https://codereview.chromium.org/12713007/diff/1/chrome/browser/password_manager/password_manager_browsertest.cc#newcode105 ...
7 years, 9 months ago (2013-03-23 01:10:58 UTC) #5
Garrett Casto
https://codereview.chromium.org/12713007/diff/21001/chrome/browser/password_manager/password_manager_browsertest.cc File chrome/browser/password_manager/password_manager_browsertest.cc (right): https://codereview.chromium.org/12713007/diff/21001/chrome/browser/password_manager/password_manager_browsertest.cc#newcode85 chrome/browser/password_manager/password_manager_browsertest.cc:85: } On 2013/03/23 01:10:58, Ilya Sherman wrote: > nit: ...
7 years, 9 months ago (2013-03-26 00:00:26 UTC) #6
Charlie Reis
Hmm. I'd feel better if I knew where we were associating the actual password with ...
7 years, 9 months ago (2013-03-27 05:15:04 UTC) #7
Garrett Casto
On 2013/03/27 05:15:04, creis wrote: > Hmm. I'd feel better if I knew where we ...
7 years, 9 months ago (2013-03-27 18:57:25 UTC) #8
Garrett Casto
https://codereview.chromium.org/12713007/diff/45001/content/public/renderer/document_state.h File content/public/renderer/document_state.h (right): https://codereview.chromium.org/12713007/diff/45001/content/public/renderer/document_state.h#newcode178 content/public/renderer/document_state.h:178: // origin we associate it with, only if we ...
7 years, 9 months ago (2013-03-27 18:59:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gcasto@chromium.org/12713007/65001
7 years, 9 months ago (2013-03-27 19:02:48 UTC) #10
commit-bot: I haz the power
7 years, 9 months ago (2013-03-27 21:17:58 UTC) #11
Message was sent while issue was closed.
Change committed as 191024

Powered by Google App Engine
This is Rietveld 408576698