WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

@mozilla.org/docloader;1

This component implements the following interfaces:

Constants

These flags indicate the state transistions to observe, corresponding to nsIWebProgressListener::onStateChange.

NOTIFY_STATE_REQUEST Only receive the onStateChange event if the aStateFlags parameter includes nsIWebProgressListener::STATE_IS_REQUEST.

NOTIFY_STATE_DOCUMENT Only receive the onStateChange event if the aStateFlags parameter includes nsIWebProgressListener::STATE_IS_DOCUMENT.

NOTIFY_STATE_NETWORK Only receive the onStateChange event if the aStateFlags parameter includes nsIWebProgressListener::STATE_IS_NETWORK.

NOTIFY_STATE_WINDOW Only receive the onStateChange event if the aStateFlags parameter includes nsIWebProgressListener::STATE_IS_WINDOW.

NOTIFY_STATE_ALL Receive all onStateChange events.

PRUint32 nsIWebProgress.NOTIFY_STATE_REQUEST = 1
PRUint32 nsIWebProgress.NOTIFY_STATE_DOCUMENT = 2
PRUint32 nsIWebProgress.NOTIFY_STATE_NETWORK = 4
PRUint32 nsIWebProgress.NOTIFY_STATE_WINDOW = 8
PRUint32 nsIWebProgress.NOTIFY_STATE_ALL = 15
These flags indicate the other events to observe, corresponding to the other four methods defined on nsIWebProgressListener.

NOTIFY_PROGRESS Receive onProgressChange events.

NOTIFY_STATUS Receive onStatusChange events.

NOTIFY_SECURITY Receive onSecurityChange events.

NOTIFY_LOCATION Receive onLocationChange events.

NOTIFY_REFRESH Receive onRefreshAttempted events. This is defined on nsIWebProgressListener2.

PRUint32 nsIWebProgress.NOTIFY_PROGRESS = 16
PRUint32 nsIWebProgress.NOTIFY_STATUS = 32
PRUint32 nsIWebProgress.NOTIFY_SECURITY = 64
PRUint32 nsIWebProgress.NOTIFY_LOCATION = 128
PRUint32 nsIWebProgress.NOTIFY_REFRESH = 256
This flag enables all notifications.
PRUint32 nsIWebProgress.NOTIFY_ALL = 511

Properties

readonly nsISupports nsIDocumentLoader.container

readonly nsIChannel nsIDocumentLoader.documentChannel

readonly nsIDOMWindow nsIWebProgress.DOMWindow

The DOM window associated with this nsIWebProgress instance.

readonly PRBool nsIWebProgress.isLoadingDocument

Indicates whether or not a document is currently being loaded in the context of this nsIWebProgress instance.

readonly nsILoadGroup nsIDocumentLoader.loadGroup

Methods

InterfaceMethod
nsIWebProgress void addProgressListener ( nsIWebProgressListener listener , PRUint32 notifyMask )
nsIInterfaceRequestor void getInterface ( nsIIDRef uuid , out nsQIResult* result )
nsISupportsWeakReference nsIWeakReference GetWeakReference ( )
nsIProgressEventSink void onProgress ( nsIRequest request , nsISupports context , PRUint64 progress , PRUint64 progressMax )
nsIHttpEventSink void onRedirect ( nsIHttpChannel httpChannel , nsIChannel newChannel )
nsISecurityEventSink void onSecurityChange ( nsISupports i_Context , PRUint32 state )
nsIRequestObserver void onStartRequest ( nsIRequest request , nsISupports context )
nsIProgressEventSink void onStatus ( nsIRequest request , nsISupports context , nsresult status , PRUnichar* statusArg )
nsIRequestObserver void onStopRequest ( nsIRequest request , nsISupports context , nsresult statusCode )
nsIWebProgress void removeProgressListener ( nsIWebProgressListener listener )
nsIDocumentLoader void stop ( )

Reference documentation is generated from Mozilla's source.