227640 - password is saved even when the password field has autocomplete="off", patch by Unknown W. Brackets <unknown@simplemachines.org> r=bryner

This commit is contained in:
ben%bengoodger.com 2004-06-03 20:42:01 +00:00
Родитель c67fd1044d
Коммит 1a24d24370
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -1042,6 +1042,11 @@ nsPasswordManager::Notify(nsIContent* aFormNode,
if (autocomplete.EqualsIgnoreCase("off"))
return NS_OK;
nsCOMPtr<nsIDOMElement> passFieldElement = do_QueryInterface(passFields.ObjectAt(0));
passFieldElement->GetAttribute(NS_LITERAL_STRING("autocomplete"), autocomplete);
if (autocomplete.EqualsIgnoreCase("off"))
return NS_OK;
// Check whether this signon is already stored.
// Note that we don't prompt the user if only the password doesn't match;