Bug 390025 - "Move to LoginManager and remove wallet from SeaMonkey" - Uncomment Login Manager code [r+sr=neil]

This commit is contained in:
Serge Gautherie 2009-01-15 17:55:33 +00:00
Родитель 681ae961cb
Коммит 13fccb8502
4 изменённых файлов: 0 добавлений и 11 удалений

Просмотреть файл

@ -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",