mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
Bug 449095 – LoginManagerStorage_legacy shouldn't write file if no data present. r=me
This commit is contained in:
parent
debed4846b
commit
16add8f7b8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user