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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user