nsSessionStartup.js File Reference

Go to the source code of this file.

Functions

Components utils import ("resource://gre/modules/XPCOMUtils.jsm")
 
function debug (aMsg)
 
function SessionStartup ()
 
function NSGetModule (aCompMgr, aFileSpec) XPCOMUtils.generateModule([SessionStartup])
 

Variables

const Cc = Components.classes
 
const Ci = Components.interfaces
 
const Cr = Components.results
 
const STATE_RUNNING_STR = "running"
 
SessionStartup prototype
 

Function Documentation

function debug (   aMsg)

Definition at line 76 of file nsSessionStartup.js.

Here is the caller graph for this function:

Components utils import ( "resource://gre/modules/XPCOMUtils.jsm"  )
function NSGetModule ( compMgr  ,
fileSpec   
)

/brief XPCOM initialization code

Definition at line 470 of file sbAddonMetadata.js.

Here is the call graph for this function:

function SessionStartup ( )

Definition at line 84 of file nsSessionStartup.js.

Variable Documentation

const Cc = Components.classes

* Session Storage and Restoration

*

* Overview

* This service reads user's session file at startup, and makes a determination

* as to whether the session should be restored. It will restore the session

* under the circumstances described below. If the auto-start Private Browsing

* mode is active, however, the session is never restored.

*

* Crash Detection

* The session file stores a session.state property, that

* indicates whether the browser is currently running. When the browser shuts

* down, the field is changed to "stopped". At startup, this field is read, and

* if its value is "running", then it's assumed that the browser had previously

* crashed, or at the very least that something bad happened, and that we should

* restore the session.

*

* Forced Restarts

* In the event that a restart is required due to application update or extension

* installation, set the browser.sessionstore.resume_session_once pref to true,

* and the session will be restored the next time the browser starts.

*

* Always Resume

* This service will always resume the session if the integer pref

* browser.startup.page is set to 3.

Definition at line 69 of file nsSessionStartup.js.

Definition at line 70 of file nsSessionStartup.js.

const Cr = Components.results

Definition at line 71 of file nsSessionStartup.js.

SessionStartup prototype

Definition at line 87 of file nsSessionStartup.js.

const STATE_RUNNING_STR = "running"

Definition at line 74 of file nsSessionStartup.js.