 if (!this._datapath) { var DIR_SERVICE = new Components.Constructor( "@mozilla.org/file/directory_service;1", "nsIProperties"); this._datapath = (new DIR_SERVICE()).get("ProfD", Ci.nsIFile).path; } 
var importFile = null;  if (!this._signonsFile) [this._signonsFile, importFile] = this._getSignonsFile(); 
    init : function () {        this._logins  = {};        this._disabledHosts = {};        // Connect to the correct preferences branch.        this._prefBranch = Cc["@mozilla.org/preferences-service;1"]                                .getService(Ci.nsIPrefService);        this._prefBranch = this._prefBranch.getBranch("signon.");        this._prefBranch.QueryInterface(Ci.nsIPrefBranch2);        if (this._prefBranch.prefHasUserValue("debug"))            this._debug = this._prefBranch.getBoolPref("debug");        // Check to see if the internal PKCS#11 token has been initialized.        // If not, set a blank password.        var tokenDB = Cc["@mozilla.org/security/pk11tokendb;1"]                            .getService(Ci.nsIPK11TokenDB);        var token = tokenDB.getInternalKeyToken();        if (token.needsUserInit) {            this.log("Initializing key3.db with default blank password.");            token.initPassword("");        }        // Get the location of the user's profile.        if (!this._datapath) {            var DIR_SERVICE = new Components.Constructor(                    "@mozilla.org/file/directory_service;1", "nsIProperties");            this._datapath = (new DIR_SERVICE()).get("ProfD", Ci.nsIFile).path;        }        if (!this._datafile)            this._datafile = this._prefBranch.getCharPref("SignonFileName2");        var importFile = null;        if (!this._doesFileExist(this._datapath, this._datafile)) {            this.log("SignonFilename2 file does not exist. (file=" +                        this._datafile + ") path=(" + this._datapath + ")");            // Try reading the old file            importFile = this._prefBranch.getCharPref("SignonFileName");            if (!this._doesFileExist(this._datapath, importFile)) {                this.log("SignonFilename1 file does not exist. (file=" +                            importFile + ") path=(" + this._datapath + ")");                this.log("Creating new signons file...");                importFile = null;                this._writeFile(this._datapath, this._datafile);            }        }        // Read in the stored login data.        if (importFile) {            this.log("Importing " + importFile);            this._readFile(this._datapath, importFile);            this._writeFile(this._datapath, this._datafile);        } else {            this._readFile(this._datapath, this._datafile);        }    },
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/f8c9dfa7ed9586fb0300d0d0d4107004f8f38e58/storage-Legacy.js/buggy/toolkit/components/passwordmgr/src/storage-Legacy.js