aboutSessionRestore.js File Reference

Go to the source code of this file.

Functions

function initTreeView ()
 
function restoreSession ()
 
function startNewSession ()
 
function onListClick (aEvent)
 
function onListKeyDown (aEvent)
 
function getBrowserWindow ()
 
function toggleRowChecked (aIx)
 
function restoreSingleTab (aIx, aShifted)
 

Variables

const Cc = Components.classes
 
const Ci = Components.interfaces
 
var gStateObject
 
var gTreeData
 
window onload
 
var treeView
 

Function Documentation

function getBrowserWindow ( )

Definition at line 197 of file aboutSessionRestore.js.

Here is the caller graph for this function:

function initTreeView ( )

Definition at line 70 of file aboutSessionRestore.js.

Here is the call graph for this function:

function onListClick (   aEvent)

Definition at line 155 of file aboutSessionRestore.js.

function onListKeyDown (   aEvent)

Definition at line 173 of file aboutSessionRestore.js.

Here is the call graph for this function:

function restoreSession ( )

Definition at line 106 of file aboutSessionRestore.js.

Here is the call graph for this function:

function restoreSingleTab (   aIx,
  aShifted 
)

Definition at line 227 of file aboutSessionRestore.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function startNewSession ( )

Definition at line 147 of file aboutSessionRestore.js.

Here is the call graph for this function:

function toggleRowChecked (   aIx)

Definition at line 203 of file aboutSessionRestore.js.

Here is the caller graph for this function:

Variable Documentation

const Cc = Components.classes

Definition at line 37 of file aboutSessionRestore.js.

Definition at line 38 of file aboutSessionRestore.js.

var gStateObject

Definition at line 40 of file aboutSessionRestore.js.

var gTreeData

Definition at line 41 of file aboutSessionRestore.js.

window onload
Initial value:
= function() {
var sessionData = document.getElementById("sessionData");
if (!sessionData.value) {
var ss = Cc["@mozilla.org/browser/sessionstartup;1"].getService(Ci.nsISessionStartup);
sessionData.value = ss.state;
if (!sessionData.value) {
document.getElementById("errorTryAgain").disabled = true;
return;
}
}
var event = document.createEvent("UIEvents");
event.initUIEvent("input", true, true, window, 0);
sessionData.dispatchEvent(event);
var s = new Components.utils.Sandbox("about:blank");
gStateObject = Components.utils.evalInSandbox("(" + sessionData.value + ")", s);
document.getElementById("errorTryAgain").focus();
}
var event
var gStateObject
let window
const Ci
function initTreeView()
const Cc

Definition at line 45 of file aboutSessionRestore.js.

var treeView

Definition at line 245 of file aboutSessionRestore.js.