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

Issue 6271007: PasswordManager fills up text input field with password, or PM crashes chrome tab/window/session (Closed)

Created:
9 years, 11 months ago by dhollowa
Modified:
9 years, 7 months ago
Reviewers:
Ilya Sherman
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

PasswordManager fills up text input field with password, or PM crashes chrome tab/window/session The password manager was incorrectly down-casting from WebNode to WebInputElement and then upon method invocation, was crashing. This change adds extra checks to |FindFormInputElements| before down-casting. Also, when "name" attributes are ambiguous, the code now rejects filling. This fixes the case where password text can erroneously get filled in the username field. BUG=29352 TEST=PasswordAutocompleteManagerTest.*, and manual according to bugs. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71806

Patch Set 1 #

Total comments: 4

Patch Set 2 : Comment nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -13 lines) Patch
M chrome/renderer/password_autocomplete_manager.cc View 1 2 chunks +32 lines, -13 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
dhollowa
9 years, 11 months ago (2011-01-19 03:49:13 UTC) #1
Ilya Sherman
LGTM http://codereview.chromium.org/6271007/diff/1/chrome/renderer/password_autocomplete_manager.cc File chrome/renderer/password_autocomplete_manager.cc (right): http://codereview.chromium.org/6271007/diff/1/chrome/renderer/password_autocomplete_manager.cc#newcode61 chrome/renderer/password_autocomplete_manager.cc:61: // of "name" attribute) so is considered not ...
9 years, 11 months ago (2011-01-19 04:58:33 UTC) #2
dhollowa
9 years, 11 months ago (2011-01-19 16:36:56 UTC) #3
http://codereview.chromium.org/6271007/diff/1/chrome/renderer/password_autoco...
File chrome/renderer/password_autocomplete_manager.cc (right):

http://codereview.chromium.org/6271007/diff/1/chrome/renderer/password_autoco...
chrome/renderer/password_autocomplete_manager.cc:61: // of "name" attribute) so
is considered not found.
On 2011/01/19 04:58:35, Ilya Sherman wrote:
> nit: Should be "so it is" or something like that

Done.

http://codereview.chromium.org/6271007/diff/1/chrome/renderer/password_autoco...
chrome/renderer/password_autocomplete_manager.cc:68: // Note: This assignment
adds a reference to the InputElement.
On 2011/01/19 04:58:35, Ilya Sherman wrote:
> nit: I think this comment should be moved down to where the element is
actually
> added to |result|.

Done.

Powered by Google App Engine
This is Rietveld 408576698