Bug 395621. SessionStore tries to read sessionstore.js when it doesn't exist. r=dietrich, a=mconnor

This commit is contained in:
sayrer@gmail.com 2007-09-17 19:29:44 -07:00
parent 19b6fcc0f0
commit 3de9f64d4e

View File

@ -110,7 +110,7 @@ SessionStartup.prototype = {
// only read the session file if config allows possibility of restoring
var resumeFromCrash = this._prefBranch.getBoolPref("sessionstore.resume_from_crash");
if (resumeFromCrash || this._doResumeSession()) {
if ((resumeFromCrash || this._doResumeSession()) && this._sessionFile.exists()) {
// get string containing session state
this._iniString = this._readFile(this._sessionFile);
if (this._iniString) {