[Password Autofill] Correctly save signup password forms using XHR
commit7538785194246e87fb2d82b67a13c7d64018528c
authorgcasto <gcasto@chromium.org>
Wed, 22 Oct 2014 22:47:59 +0000 (22 15:47 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 22 Oct 2014 22:48:49 +0000 (22 22:48 +0000)
treeba2eeede26da0c79070dba07e6c0c192759c409e
parentdebe79fdfd4a26d247366d60af68909517b77a9f
[Password Autofill] Correctly save signup password forms using XHR

This mostly affects password generation as we will save the state the user
has typed. In the cases where the user hasn't typed (e.g. autofill or
generation) we have a fallback mechanism that scans forms on the page. This
check currently misses signup pages because it only looks at |password_value|
not |new_password_value|.

BUG=425653

Review URL: https://codereview.chromium.org/672523002

Cr-Commit-Position: refs/heads/master@{#300784}
chrome/browser/password_manager/password_manager_browsertest.cc
chrome/test/data/password/password_xhr_submit.html
components/autofill/content/renderer/password_autofill_agent.cc