Readonly
DOMWindowThe DOM window associated with this nsIWebProgress instance.
NS_ERROR_FAILURE Indicates that there is no associated DOM window.
Readonly
browsingBrowsingContext associated with this nsIWebProgress instance, or null
if
there is no BrowsingContext.
Readonly
documentThe request for the currently loading document. It is null if isLoadingDocument is false. Note, the request may not be the actual nsIChannel instance used for loading, but a dummy RemoteWebProgressRequest. And since redirects are hidden from the child processes, this may not reflect the complete redirect state of the load.
Readonly
isIndicates whether or not a document is currently being loaded in the context of this nsIWebProgress instance.
Readonly
isIndicates whether DOMWindow.top == DOMWindow.
Readonly
loadContains a load type as specified by the load* constants in nsIDocShell:LoadCommand.
Main thread event target to which progress updates should be dispatched. This typically will be a SchedulerEventTarget corresponding to the tab requesting updates.
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.
Registers a listener to receive web progress events.
NS_ERROR_INVALID_ARG Indicates that aListener was either null or that it does not support weak references.
NS_ERROR_FAILURE Indicates that aListener was already registered.
The listener interface to be called when a progress event occurs. This object must also implement nsISupportsWeakReference.
The types of notifications to receive.
Removes a previously registered listener of progress events.
NS_ERROR_FAILURE Indicates that aListener was not registered.
The listener interface previously registered with a call to addProgressListener.
Generated using TypeDoc
The nsIWebProgress interface is used to add or remove nsIWebProgressListener instances to observe the loading of asynchronous requests (usually in the context of a DOM window).
nsIWebProgress instances may be arranged in a parent-child configuration, corresponding to the parent-child configuration of their respective DOM windows. However, in some cases a nsIWebProgress instance may not have an associated DOM window. The parent-child relationship of nsIWebProgress instances is not made explicit by this interface, but the relationship may exist in some implementations.
A nsIWebProgressListener instance receives notifications for the nsIWebProgress instance to which it added itself, and it may also receive notifications from any nsIWebProgress instances that are children of that nsIWebProgress instance.