Readonly
associatedassociatedWindow is the window with which the load is associated, if any. Note that the load may be triggered by a document which is different from the document in associatedWindow, and in fact the source of the load need not be same-origin with the document in associatedWindow. This attribute may be null if there is no associated window.
Readonly
isTrue if the load context is content (as opposed to chrome). This is determined based on the type of window the load is performed in, NOT based on any URIs that might be around.
Readonly
originA dictionary of the non-default origin attributes associated with this nsILoadContext.
Readonly
toptopFrameElement is the
Note that we may have a topFrameElement even when we don't have an associatedWindow, if the topFrameElement's content lives out of process. topFrameElement is available in single-process and multiprocess contexts. Note that topFrameElement may be in chrome even when the nsILoadContext is associated with content.
Readonly
toptopWindow is the top window which is of same type as associatedWindow. This is equivalent to associatedWindow.top, but is provided here as a convenience. All the same caveats as associatedWindow of apply, of course. This attribute may be null if there is no associated window.
Attribute that determines if private browsing should be used. May not be changed after a document has been loaded in this context.
Readonly
useDetermines if out-of-process iframes should be used.
Readonly
useAttribute that determines if remote (out-of-process) tabs should be used.
Attribute that determines if tracking protection should be used. May not be changed after a document has been loaded in this context.
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.
Generated using TypeDoc
An nsILoadContext represents the context of a load. This interface can be queried for various information about where the load is happening.