зеркало из https://github.com/mozilla/pjs.git
Don't bother offering to remember a login with an empty username and password. Bug 217439.
This commit is contained in:
Родитель
22d8a606b3
Коммит
b76911bf5e
|
@ -846,6 +846,12 @@ nsPasswordManager::Notify(nsIContent* aFormNode,
|
||||||
passFields.ObjectAt(0)->GetValue(passValue);
|
passFields.ObjectAt(0)->GetValue(passValue);
|
||||||
passFields.ObjectAt(0)->GetName(passFieldName);
|
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;
|
SignonHashEntry* hashEnt;
|
||||||
|
|
||||||
if (mSignonTable.Get(realm, &hashEnt)) {
|
if (mSignonTable.Get(realm, &hashEnt)) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче