mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
change chrome url for weave passwords in login manager to chrome://weave
This commit is contained in:
parent
c327476fcc
commit
cc4ab1bb14
@ -105,7 +105,7 @@ let Utils = {
|
|||||||
let password;
|
let password;
|
||||||
let lm = Cc["@mozilla.org/login-manager;1"]
|
let lm = Cc["@mozilla.org/login-manager;1"]
|
||||||
.getService(Ci.nsILoginManager);
|
.getService(Ci.nsILoginManager);
|
||||||
let logins = lm.findLogins({}, 'chrome://sync', null, realm);
|
let logins = lm.findLogins({}, 'chrome://weave', null, realm);
|
||||||
|
|
||||||
for (let i = 0; i < logins.length; i++) {
|
for (let i = 0; i < logins.length; i++) {
|
||||||
if (logins[i].username == username) {
|
if (logins[i].username == username) {
|
||||||
@ -120,7 +120,7 @@ let Utils = {
|
|||||||
// cleanup any existing passwords
|
// cleanup any existing passwords
|
||||||
let lm = Cc["@mozilla.org/login-manager;1"]
|
let lm = Cc["@mozilla.org/login-manager;1"]
|
||||||
.getService(Ci.nsILoginManager);
|
.getService(Ci.nsILoginManager);
|
||||||
let logins = lm.findLogins({}, 'chrome://sync', null, realm);
|
let logins = lm.findLogins({}, 'chrome://weave', null, realm);
|
||||||
for (let i = 0; i < logins.length; i++)
|
for (let i = 0; i < logins.length; i++)
|
||||||
lm.removeLogin(logins[i]);
|
lm.removeLogin(logins[i]);
|
||||||
|
|
||||||
@ -130,7 +130,7 @@ let Utils = {
|
|||||||
// save the new one
|
// save the new one
|
||||||
let nsLoginInfo = new Components.Constructor(
|
let nsLoginInfo = new Components.Constructor(
|
||||||
"@mozilla.org/login-manager/loginInfo;1", Ci.nsILoginInfo, "init");
|
"@mozilla.org/login-manager/loginInfo;1", Ci.nsILoginInfo, "init");
|
||||||
let login = new nsLoginInfo('chrome://sync', null, realm,
|
let login = new nsLoginInfo('chrome://weave', null, realm,
|
||||||
username, password, "", "");
|
username, password, "", "");
|
||||||
lm.addLogin(login);
|
lm.addLogin(login);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user