The URI of the current entry.
If we created this SHEntry via history.pushState or modified it via history.replaceState, and if we changed the SHEntry's URI via the push/replaceState call, and if the SHEntry's new URI differs from its old URI by more than just the hash, then we set this field to true.
Additionally, if this SHEntry was created by calling pushState from a SHEntry whose URI was modified, this SHEntry's URIWasModified field is true.
When isSrcdocEntry is true, this contains the baseURI of the srcdoc document for use in situations where it cannot otherwise be determined, for example with view-source.
Readonly
bfcacheIDThe cache key for the entry
Readonly
childThe current number of nsISHEntries which are immediate children of this SHEntry.
attribute to indicate the content-type of the document that this is a session history entry for
Content viewer, for fast restoration of presentation
Get the csp, if any, that was used for this document load. That is not the CSP that was applied to subresource loads within the document, but the CSP that was applied to this document load.
The history ID of the docshell.
Readonly
hasWhether the load that created this entry was triggered by user activation. (e.g.: The user clicked a link) Remembering this flag enables replaying the sec-fetch-* headers.
Whether the user interacted with the page while this entry was active. This includes interactions with subframe documents associated with child entries that are rooted at this entry. This field will only be set on top-level entries.
Readonly
isReadonly
isTrue if this SHEntry corresponds to a document created by a srcdoc iframe. Set when a value is assigned to srcdocData.
Was the entry created as a result of a subframe navigation?
A number that is assigned by the sHistory when the entry is activated
LayoutHistoryState for scroll position and form values
This flag remembers whether channel has LOAD_REPLACE set.
The loadType for this entry. This is typically loadHistory except when reload is pressed, it has the appropriate reload flag
Readonly
loadedFlag to indicate that the history entry was originally loaded in the current process. This flag does not survive a browser process switch.
The name of the browsing context.
The original URI of the current entry. If an entry is the result of a redirect this attribute holds the original URI.
parent of this entry
Get the storage principal, if any, that is used when the inherit flag is set.
When an entry is serving is within nsISHistory's array of entries, this property specifies if it should persist. If not it will be replaced by new additions to the list.
Post Data for the document
Get the principal, if any, that is used when the inherit flag is set.
Referrer Info
Saved refresh URI list for the content viewer
URL as stored from nsILoadInfo.resultPrincipalURI. See nsILoadInfo for more details.
Should the layoutHistoryState be saved?
Sets/gets the current scroll restoration state, if true == "manual", false == "auto".
The session history it belongs to. This is set only on the root entries.
Contents of the srcdoc attribute in a srcdoc iframe to be loaded instead of the URI. Similar to a Data URI, this information is needed to recreate the document at a later stage. Setting this sets isSrcdocEntry to true
Get/set data associated with this history state via a pushState() call, serialized using structured clone.
Whether the content viewer is marked "sticky"
The title of the current entry.
Get the principal, if any, that was associated with the channel that the document that was loaded to create this history entry came from.
If non-null, the URI as it was before query stripping was performed.
Saved state of the global window object
If browser.history.collectWireframes is true, this will get populated with a Wireframe upon document navigation / pushState. This will only be set for nsISHEntry's accessed in the parent process with sessionHistoryInParent enabled. See Document.webidl for more details on what a Wireframe is.
If this entry has no dynamically added child, get the child SHEntry at the given offset. The loadtype of the returned entry is set to its parent's loadtype.
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.
Sync up the docshell and session history trees for subframe navigation.
new entry
top BC corresponding to the root ancestor of the docshell that called this method
current BC
Saved child docshells corresponding to contentViewer. The child shells are restored as children of the parent docshell, in this order, when the parent docshell restores a saved presentation.
Append a child shell to the end of our list.
Additional ways to create an entry
Does this SHEntry correspond to the same document as aEntry? This is true iff the two SHEntries have the same BFCacheEntry. So in particular, sharesDocumentWith(aEntry) is guaranteed to return true if it's preceded by a call to adoptBFCacheEntry(aEntry).
Generated using TypeDoc
An ID to help identify this entry from others during subframe navigation