sessions - Mozilla | MDN
Types
sessions.Filter-
Enables you to restrict the number of
Sessionobjects returned by a call tosessions.getRecentlyClosed(). sessions.Session-
Represents a tab or window that the user has closed in the current browsing session.
Properties
sessions.MAX_SESSION_RESULTS-
The maximum number of sessions that will be returned by a call to
sessions.getRecentlyClosed().
Functions
sessions.forgetClosedTab()-
Removes a closed tab from the browser's list of recently closed tabs.
sessions.forgetClosedWindow()-
Removes a closed window from the browser's list of recently closed windows.
sessions.getRecentlyClosed()-
Returns an array of
Sessionobjects, representing windows and tabs that were closed in the current browsing session (that is: the time since the browser was started). sessions.restore()-
Restores a closed tab or window.
sessions.setTabValue()-
Store a key/value pair associated with a given tab.
sessions.getTabValue()-
Retrieve a previously stored value for a given tab, given its key.
sessions.removeTabValue()-
Remove a key/value pair from a given tab.
sessions.setWindowValue()-
Store a key/value pair associated with a given window.
sessions.getWindowValue()-
Retrieve a previously stored value for a given window, given its key.
sessions.removeWindowValue()-
Remove a key/value pair from a given window.
Events
sessions.onChanged-
Fired when a tab or window is closed.