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

Issue 343663002: PasswordManager: Add rendered forms to pending_login_managers_ (Closed)

Created:
6 years, 6 months ago by vabr (Chromium)
Modified:
6 years, 6 months ago
Reviewers:
Garrett Casto
CC:
chromium-reviews, gcasto+watchlist_chromium.org, mkwst+watchlist_chromium.org
Project:
chromium
Visibility:
Public.

Description

PasswordManager: Add rendered forms to pending_login_managers_ |pending_login_managers_| is the list of all password form managers for forms on the current page. It is important when we detect a password to save -- it can only be saved if it correspondes to a pending login manager, which means to a form on the page the user is navigating from. The list is currently updated on 2 occasions: 1) when the forms on the current page are parsed, and 2) when JavaScript adds a new form. The exception to 2) is when the main frame loads -- we don't add forms added during that time, because they might be just confusing fragments. It has been observed though, that there are still dynamically created forms which are not just fragments, but which fall prey to the above exception. Those forms have been observed during the phase forms are actually rendered. So this CL adds a new place to update |pending_login_managers_|: 3) when the forms on the current page are rendered. BUG=367768 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278704

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -0 lines) Patch
M chrome/browser/password_manager/password_manager_browsertest.cc View 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/test/data/password/between_parsing_and_rendering.html View 1 1 chunk +95 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager.h View 1 chunk +5 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager.cc View 1 3 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
vabr (Chromium)
Hi Garrett, Since you have been helping me on the bug, would you like to ...
6 years, 6 months ago (2014-06-18 16:45:58 UTC) #1
Garrett Casto
lgtm Few nits, fix itself looks good. https://codereview.chromium.org/343663002/diff/40001/chrome/test/data/password/between_parsing_and_rendering.html File chrome/test/data/password/between_parsing_and_rendering.html (right): https://codereview.chromium.org/343663002/diff/40001/chrome/test/data/password/between_parsing_and_rendering.html#newcode16 chrome/test/data/password/between_parsing_and_rendering.html:16: To make ...
6 years, 6 months ago (2014-06-19 00:05:40 UTC) #2
vabr (Chromium)
Thanks, Garrett! Comments addressed, sending into CQ. Cheers, Vaclav https://codereview.chromium.org/343663002/diff/40001/chrome/test/data/password/between_parsing_and_rendering.html File chrome/test/data/password/between_parsing_and_rendering.html (right): https://codereview.chromium.org/343663002/diff/40001/chrome/test/data/password/between_parsing_and_rendering.html#newcode16 chrome/test/data/password/between_parsing_and_rendering.html:16: ...
6 years, 6 months ago (2014-06-20 07:55:07 UTC) #3
vabr (Chromium)
The CQ bit was checked by vabr@chromium.org
6 years, 6 months ago (2014-06-20 07:55:11 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/343663002/60001
6 years, 6 months ago (2014-06-20 07:57:42 UTC) #5
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-20 13:13:09 UTC) #6
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 13:58:38 UTC) #7
Message was sent while issue was closed.
Change committed as 278704

Powered by Google App Engine
This is Rietveld 408576698