Readonly
countA readonly property of the interface that returns the number of toplevel documents currently available in session history.
The index of the current document in session history. Not infallible because setting can fail if the assigned value is out of range.
Readonly
requestedA readonly property of the interface that returns the index of the last document that started to load and didn't finished yet. When document finishes the loading value -1 is returned.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Remove dynamic entries found at given index.
Index to remove dynamic entries from. It will be passed to RemoveEntries as aStartIndex.
(optional) The entry to start looking in for dynamic entries. Only the dynamic descendants of the entry will be removed. If not given, all dynamic entries at the index will be removed.
Similar to RemoveDynEntries, but instead of specifying an index, use the given BFCacheEntry to find the index and remove dynamic entries from the index.
The method takes no effect if the bfcache entry is not or no longer hold by the SHistory instance.
The bfcache entry to look up for index to remove dynamic entries from.
Add a new Entry to the History List.
The entry to add.
If true this specifies that the entry should persist in the list. If false, this means that when new entries are added this element will not appear in the session history list.
Called to register a listener for the session history component. Listeners are notified when pages are loaded or purged from history.
A listener object must implement nsISHistoryListener and nsSupportsWeakReference
Listener object to be notified for all page loads that initiate in session history.
Evict content viewers which don't lie in the "safe" range around aIndex. In practice, this should leave us with no more than gHistoryMaxViewers viewers associated with this SHistory object.
Also make sure that the total number of content viewers in all windows is not greater than our global max; if it is, evict viewers as appropriate.
The index around which the "safe" range is centered. In general, if you just navigated the history, aIndex should be the index history was navigated to.
Called to obtain the index to a given history entry.
NS_OK
index for the history entry
is obtained successfully.
NS_ERROR_FAILURE
Error in obtaining
index for the given history entry.
The entry to obtain the index of.
Called to purge older documents from history. Documents can be removed from session history for various reasons. For example to control memory usage of the browser, to prevent users from loading documents from history, to erase evidence of prior page loads etc...
NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA
Purge was vetod.
NS_ERROR_FAILURE
numEntries is
invalid or out of bounds with the size of history.
Called to remove a listener for the session history component. Listeners are notified when pages are loaded from history.
A listener object must implement nsISHistoryListener and nsSupportsWeakReference
Listener object to be removed from session history.
Generated using TypeDoc
An interface to the primary properties of the Session History component. In an embedded browser environment, the nsIWebBrowser object creates an instance of session history for each open window. A handle to the session history object can be obtained from nsIWebNavigation. In a non-embedded situation, the owner of the session history component must create a instance of it and set it in the nsIWebNavigation object. This interface is accessible from javascript.