Go to the source code of this file.
Components utils import |
( |
"resource://gre/modules/XPCOMUtils.jsm" |
| ) |
|
function NSGetModule |
( |
compMgr |
, |
|
|
fileSpec |
|
|
) |
| |
function SessionStartup |
( |
| ) |
|
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.
const Cr = Components.results |
const STATE_RUNNING_STR = "running" |