Camino only - Bug 371270: Check the current username text, rather than the initial text, when deciding whether or not to fill a login form. r/sr=pink

git-svn-id: svn://10.0.0.236/trunk@250382 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
stuart.morgan%alumni.case.edu
2008-04-17 17:14:16 +00:00
parent 849987778d
commit 680e30212d

View File

@@ -1340,7 +1340,7 @@ KeychainFormSubmitObserver::Notify(nsIDOMHTMLFormElement* formNode, nsIDOMWindow
// If the server specifies a value attribute, only autofill the password if
// what we have in keychain matches what the server supplies (bug 169760).
nsAutoString userValue;
usernameElement->GetAttribute(NS_LITERAL_STRING("value"), userValue);
usernameElement->GetValue(userValue);
if (!userValue.Length() || userValue.Equals(user, nsCaseInsensitiveStringComparator())) {
rv = usernameElement->SetValue(user);
rv = passwordElement->SetValue(pwd);