Bug 832325 - Finish the initialization of nsSessionStartup correctly if permanent PB is turned on; r=ttaubert

This commit is contained in:
Ehsan Akhgari 2013-02-23 01:45:37 -05:00
parent 14b657a2d1
commit 90f36ef27c

View File

@ -72,8 +72,11 @@ SessionStartup.prototype = {
*/
init: function sss_init() {
// do not need to initialize anything in auto-started private browsing sessions
if (PrivateBrowsingUtils.permanentPrivateBrowsing)
if (PrivateBrowsingUtils.permanentPrivateBrowsing) {
this._initialized = true;
gOnceInitializedDeferred.resolve();
return;
}
_SessionFile.read().then(
this._onSessionFileRead.bind(this)