From 680e30212d1ef09ef71b964320390f73dd0b0fe9 Mon Sep 17 00:00:00 2001 From: "stuart.morgan%alumni.case.edu" Date: Thu, 17 Apr 2008 17:14:16 +0000 Subject: [PATCH] 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 --- mozilla/camino/src/formfill/KeychainService.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/camino/src/formfill/KeychainService.mm b/mozilla/camino/src/formfill/KeychainService.mm index c0e7c726655..23c106f54f7 100644 --- a/mozilla/camino/src/formfill/KeychainService.mm +++ b/mozilla/camino/src/formfill/KeychainService.mm @@ -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);