Sync Pale Moon code

This commit is contained in:
NTD 2018-04-04 03:17:39 -04:00 committed by Roy Tam
commit a5f9344426
15 changed files with 108 additions and 16 deletions

View file

@ -77,9 +77,14 @@ SessionStartup.prototype = {
return;
}
_SessionFile.read().then(
this._onSessionFileRead.bind(this)
);
if (Services.prefs.getBoolPref("browser.sessionstore.resume_session_once") ||
Services.prefs.getIntPref("browser.startup.page") == 3) {
this._ensureInitialized();
} else {
_SessionFile.read().then(
this._onSessionFileRead.bind(this)
);
}
},
// Wrap a string as a nsISupports