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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user