зеркало из https://github.com/mozilla/pjs.git
Bug 413826 - Don't select autofilled usernames. Patch by Bryan Atwood <batwood.bugs@gmail.com>, r=smorgan, sr=mento
This commit is contained in:
Родитель
7a3e833b71
Коммит
ee03d1059d
|
@ -1343,11 +1343,6 @@ KeychainFormSubmitObserver::Notify(nsIDOMHTMLFormElement* formNode, nsIDOMWindow
|
|||
if (!userValue.Length() || userValue.Equals(user, nsCaseInsensitiveStringComparator())) {
|
||||
rv = usernameElement->SetValue(user);
|
||||
rv = passwordElement->SetValue(pwd);
|
||||
|
||||
// Highlight the username.
|
||||
nsCOMPtr<nsIDOMNSHTMLInputElement> nsElement = do_QueryInterface(usernameElement);
|
||||
if (nsElement)
|
||||
nsElement->SetSelectionStart(0);
|
||||
}
|
||||
|
||||
// Now that we have actually filled the password, cache the keychain entry.
|
||||
|
|
Загрузка…
Ссылка в новой задаче