This class handles the about:sessionrestore page.
Method overview
|
ElemBase |
boolean |
array |
array |
Methods
aboutSessionRestore()
Constructor of the class
aboutSessionRestore ( in MozMillController controller );
Parameters
controller
- Mozmill controller object of the browser window to operate on
spec
- JSON object which specifies the element to retrieve. Use its attributes to specify the exact element.
-
element
- Element which the restore state should retrieve
window
- Window inside the tree
getElement()
Retrieves a UI element based on the given spec object.
ElemBase getElement ( in object spec );
Parameters
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. |
| - | - | Gets the long description text error element. |
| - | - | Gets the page container element. |
| - | - | Gets the short description text error element. |
| - | - | Gets the error title text element. |
| - | - | 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
Return value
True if the element should be restored
getTabs()
Get the restorable tabs under the given window
getTabs ( in object window );
Parameters
Return value
List of tabs
getWindows()
Get the restorable windows
getWindows();
Return value
List of windows