This SessionStoreAPI adds support for accessing and interacting with the Session Store.
Class overview
| Class | Description |
|---|---|
| aboutSessionRestore | This class handles the about:sessionrestore page. |
Method overview
|
|
|
|
Methods
getClosedTabCount()
Returns the number of restorable tabs for a given window
getClosedTabCount ( in MozMillController controller; );
resetRecentlyClosedTabs()
Resets the list of recently closed tabs by setting and clearing the user preference
resetRecentlyClosedTabs();
undoClosedTab()
Returns the tab which has been recently closed
undoClosedTab ( in MozMillController controller in object event );
Parameters
event- Event which specifies the command that will restore the tab
event.type(string) | Description |
|---|---|
"menu" | Use the menu. |
"shorcut" | Use the keyboard shortcut. |
undoClosedWindow()
Restores the window which has been recently closed
undoClosedWindow ( in MozMillController controller in object event );
Parameters
event- Event which specifies the command that will restore the window
event.type(string) | Description |
|---|---|
"menu" | Use the menu. |
"shortcut" | Use the keyboard shortcut. |
Constants
| Constant | Value | Description |
|---|---|---|
SESSIONSTORE_MAXTABS_PREF | browser.sessionstore.max_tabs_undo | Preference for indicating the amount of restorable tabs |