Bug 383209: clear private data fails to clear stored passwords, patch by Justin Dolske <dolske@mozilla.com>, r=me

This commit is contained in:
gavin@gavinsharp.com 2007-06-27 16:31:36 -07:00
parent 0f0097ffc5
commit 64ae01005c
4 changed files with 12 additions and 12 deletions

View File

@ -74,10 +74,10 @@ interface nsILoginManager : nsISupports {
/**
* Clear all logins known to login manager.
* Remove all logins known to login manager.
*
* The browser sanitization feature allows the user to clear any stored
* passwords. This interface allows that to be done without gettng each
* passwords. This interface allows that to be done without getting each
* login first (which might require knowing the master password).
*
*/

View File

@ -98,10 +98,10 @@ interface nsILoginManagerStorage : nsISupports {
/**
* Clear all stored logins.
* Remove all stored logins.
*
* The browser sanitization feature allows the user to clear any stored
* passwords. This interface allows that to be done without gettng each
* passwords. This interface allows that to be done without getting each
* login first (which might require knowing the master password).
*
*/

View File

@ -456,13 +456,13 @@ LoginManager.prototype = {
/*
* clearAllLogins
* removeAllLogins
*
* Clears all stored logins.
* Remove all stored logins.
*/
clearAllLogins : function () {
this.log("Clearing all logins");
this._storage.clearAllLogins();
removeAllLogins : function () {
this.log("Removing all logins");
this._storage.removeAllLogins();
},
/*

View File

@ -238,11 +238,11 @@ LoginManagerStorage_legacy.prototype = {
/*
* clearAllLogins
* removeAllLogins
*
* Clears all logins from storage.
* Removes all logins from storage.
*/
clearAllLogins : function () {
removeAllLogins : function () {
this._logins = {};
// Disabled hosts kept, as one presumably doesn't want to erase those.