Bug 411105: nsILoginInfo no longer accepts null values for usernameField/passwordField. Send empty strings instead

This commit is contained in:
Dan Mills 2008-01-22 22:46:07 -08:00
parent 891a9f46f0
commit 66f5b8324c

View File

@ -112,6 +112,6 @@ function setPassword(realm, username, password) {
let nsLoginInfo = new Components.Constructor(
"@mozilla.org/login-manager/loginInfo;1", Ci.nsILoginInfo, "init");
let login = new nsLoginInfo('chrome://sync', null, realm,
username, password, null, null);
username, password, "", "");
lm.addLogin(login);
}