Bug 449095 – LoginManagerStorage_legacy shouldn't write file if no data present. r=me

This commit is contained in:
Paul OShannessy 2008-08-04 16:28:44 -07:00
parent debed4846b
commit 16add8f7b8

View File

@ -814,10 +814,9 @@ LoginManagerStorage_legacy.prototype = {
this.log("Reading passwords from " + this._signonsFile.path);
// If it doesn't exist, just create an empty file and bail out.
// If it doesn't exist, just bail out.
if (!this._signonsFile.exists()) {
this.log("Creating new signons file...");
this._writeFile();
this.log("No existing signons file found.");
return;
}