-
dhollowa@chromium.org authored
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. Review URL: http://codereview.chromium.org/6271007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71806 0039d316-1c4b-4281-b951-d872f2087c98
7674115b