mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Camino only - Bug 374180: Use case-insensitive comparison with prefilled usernames. r/sr=josh
This commit is contained in:
parent
24b10676e8
commit
afd4444535
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user