Camino only - Bug 374180: Use case-insensitive comparison with prefilled usernames. r/sr=josh

This commit is contained in:
stuart.morgan%alumni.case.edu 2007-03-17 19:01:15 +00:00
parent 24b10676e8
commit afd4444535

View File

@ -1034,7 +1034,7 @@ KeychainFormSubmitObserver::Notify(nsIContent* node, nsIDOMWindowInternal* windo
// imagine the server ever prefilling a password
nsAutoString userValue;
usernameElement->GetAttribute(NS_LITERAL_STRING("value"), userValue);
if (!userValue.Length() || userValue.Equals(user)) {
if (!userValue.Length() || userValue.Equals(user, nsCaseInsensitiveStringComparator())) {
rv = usernameElement->SetValue(user);
rv = passwordElement->SetValue(pwd);
}