aboutSessionRestore

This class handles the about:sessionrestore page.

Method overview

aboutSessionRestore()(in MozMillController controller);
ElemBase getElement()(in object spec);
boolean getRestoreState()(in object element);
array getTabs()(in object window);
array getWindows()

Methods

aboutSessionRestore()

Constructor of the class

aboutSessionRestore (
  in MozMillController controller
);
Parameters
controller
Mozmill controller object of the browser window to operate on


getElement()

Retrieves a UI element based on the given spec object.

ElemBase getElement (
  in object spec
);
Parameters
spec
JSON object which specifies the element to retrieve. Use its attributes to specify the exact element.
spec.type (string)  spec.subtype (string) spec.value (mixed) Description
"button_newSession" - -

Gets the new session button element.

"button_restoreSession" - -

Gets the restore session button element.

"error_longDesc"

- -

Gets the long description text error element.

"error_pageContainer"

- -

Gets the page container element.

"error_shortDesc"

- -

Gets the short description text error element.

"error_title"

- -

Gets the error title text element.

"tabList"

- -

Gets the tab list element.

Return value

Element which has been created

getRestoreState()

Returns the current restore state of a given element

getRestoreState (
  in object element
);
Parameters
 element
Element which the restore state should retrieve
Return value

True if the element should be restored

getTabs()

Get the restorable tabs under the given window

getTabs (
  in object window
);
Parameters
window
Window inside the tree
Return value

List of tabs

getWindows()

Get the restorable windows

getWindows();
Return value

List of windows

Document Tags and Contributors

 Contributors to this page: Sheppy, AaronMT
 Last updated by: Sheppy,