Bug 390025 - "Move to LoginManager and remove wallet from SeaMonkey" - Uncomment Login Manager code [r+sr=neil]
This commit is contained in:
Родитель
681ae961cb
Коммит
13fccb8502
|
@ -319,8 +319,6 @@ function hostHasCookies(hostName) {
|
|||
* saved passwords
|
||||
*/
|
||||
function realmHasPasswords(location) {
|
||||
return false;
|
||||
/* XXX: use code below (instead of above line) once we are using toolkit's login manager
|
||||
if (!location)
|
||||
return false;
|
||||
|
||||
|
@ -335,7 +333,6 @@ function realmHasPasswords(location) {
|
|||
|
||||
// XXX untested
|
||||
return passwords.some(function (login) { return (login.hostname == realm); });
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -41,7 +41,6 @@ function Startup()
|
|||
{
|
||||
updateClearNowButtonLabel();
|
||||
document.getElementById("privacy.item.downloads").disabled = true; // XXX: as long as we aren't using toolkit's download manager
|
||||
document.getElementById("privacy.item.passwords").disabled = true; // XXX: as long as we aren't using toolkit's login manager
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -226,22 +226,17 @@ var Sanitizer = {
|
|||
|
||||
passwords: {
|
||||
clear: function() {
|
||||
/* XXX: commented out as long as we aren't using toolkit's login manager
|
||||
var pwmgr = Components.classes["@mozilla.org/login-manager;1"]
|
||||
.getService(Components.interfaces.nsILoginManager);
|
||||
pwmgr.removeAllLogins();
|
||||
*/
|
||||
},
|
||||
|
||||
canClear: false
|
||||
/* XXX: use code below (instead of above line) once we are using toolkit's login manager
|
||||
get canClear() {
|
||||
var pwmgr = Components.classes["@mozilla.org/login-manager;1"]
|
||||
.getService(Components.interfaces.nsILoginManager);
|
||||
var count = pwmgr.countLogins("", "", ""); // count all logins
|
||||
return (count > 0);
|
||||
}
|
||||
*/
|
||||
},
|
||||
|
||||
sessions: {
|
||||
|
|
|
@ -208,7 +208,6 @@ var sanTests = {
|
|||
},
|
||||
*/
|
||||
|
||||
/* XXX: commented out as long as we aren't using toolkit's login manager
|
||||
passwords: {
|
||||
desc: "Login manager",
|
||||
setup: function() {
|
||||
|
@ -232,7 +231,6 @@ var sanTests = {
|
|||
return false;
|
||||
}
|
||||
},
|
||||
*/
|
||||
|
||||
sessions: {
|
||||
desc: "HTTP auth session",
|
||||
|
|
Загрузка…
Ссылка в новой задаче