mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Bug 411105: nsILoginInfo no longer accepts null values for usernameField/passwordField. Send empty strings instead
This commit is contained in:
parent
891a9f46f0
commit
66f5b8324c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user