Don't bother offering to remember a login with an empty username and password. Bug 217439.

This commit is contained in:
bryner%brianryner.com 2003-12-15 03:44:31 +00:00
Родитель 22d8a606b3
Коммит b76911bf5e
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -846,6 +846,12 @@ nsPasswordManager::Notify(nsIContent* aFormNode,
passFields.ObjectAt(0)->GetValue(passValue);
passFields.ObjectAt(0)->GetName(passFieldName);
// If username and password are both empty, there is no reason
// to store this login.
if (userValue.IsEmpty() && passValue.IsEmpty())
return NS_OK;
SignonHashEntry* hashEnt;
if (mSignonTable.Get(realm, &hashEnt)) {