Back to index
|void||addEntry (in nsISHEntry aEntry, in boolean aPersist)|
|Add a new Entry to the History List. |
|Update the index maintained by sessionHistory. |
|void||replaceEntry (in long aIndex, in nsISHEntry aReplaceEntry)|
|Replace the nsISHEntry at a particular index. |
|void||evictContentViewers (in long previousIndex, in long index)|
|Evict content viewers until the number of content viewers per tab is no more than gHistoryMaxViewers. |
|readonly attribute nsISHTransaction||rootTransaction|
|Get the root transaction. |
|The toplevel docshell object to which this SHistory object belongs to. |
|readonly attribute |
|Get handle to the history listener. |
|readonly attribute long||historyMaxTotalViewers|
|Max number of total cached content viewers. |
Add a new Entry to the History List.
|aEntry||- The entry to add|
|aPersist||- 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.|
Evict content viewers until the number of content viewers per tab is no more than gHistoryMaxViewers.
Also, count total number of content viewers globally and evict one if we are over our total max. This is always called in Show(), after we destroy the previous viewer.
Replace the nsISHEntry at a particular index.
|aIndex||- The index at which the entry shoud be replaced|
|aReplaceEntry||- The replacement entry for the index.|