Bug 303740 : Don't offer to remember empty passwords, r=mconnor

git-svn-id: svn://10.0.0.236/trunk@179081 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gavin%gavinsharp.com
2005-08-26 19:32:30 +00:00
parent 3ec2162e99
commit ebc75b7fa0

View File

@@ -1110,10 +1110,8 @@ 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())
// If the password is empty, there is no reason to store this login.
if (passValue.IsEmpty())
return NS_OK;
SignonHashEntry* hashEnt;