Go to the source code of this file.
function getBrowserWindow |
( |
| ) |
|
function initTreeView |
( |
| ) |
|
function onListClick |
( |
|
aEvent | ) |
|
function onListKeyDown |
( |
|
aEvent | ) |
|
function restoreSession |
( |
| ) |
|
function restoreSingleTab |
( |
|
aIx, |
|
|
|
aShifted |
|
) |
| |
function startNewSession |
( |
| ) |
|
function toggleRowChecked |
( |
|
aIx | ) |
|
const Cc = Components.classes |
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();
}
Definition at line 45 of file aboutSessionRestore.js.