nsIWebProgressListener2

An extended version of nsIWebProgressListener.

Methods

onProgressChange64(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress)

Notification that the progress has changed for one of the requests
associated with aWebProgress. Progress totals are reset to zero when all
requests in aWebProgress complete (corresponding to onStateChange being
called with aStateFlags including the STATE_STOP and STATE_IS_WINDOW
flags).

This function is identical to nsIWebProgressListener::onProgressChange,
except that this function supports 64-bit values.

NOTE: If any progress value is unknown, then its value is replaced with -1.

@see nsIWebProgressListener2::onProgressChange64

Parameters

aWebProgress The nsIWebProgress instance that fired the notification.
aRequest The nsIRequest that has new progress.
aCurSelfProgress The current progress for aRequest.
aMaxSelfProgress The maximum progress for aRequest.
aCurTotalProgress The current progress for all requests associated with aWebProgress.
aMaxTotalProgress The total progress for all requests associated with aWebProgress.

onRefreshAttempted(aWebProgress, aRefreshURI, aMillis, aSameURI)

Notification that a refresh or redirect has been requested in aWebProgress
For example, via a or an HTTP Refresh: header

Parameters

aWebProgress The nsIWebProgress instance that fired the notification.
aRefreshURI The new URI that aWebProgress has requested redirecting to.
aMillis The delay (in milliseconds) before refresh.
aSameURI True if aWebProgress is requesting a refresh of the current URI. False if aWebProgress is requesting a redirection to a different URI.

Returns

True if the refresh may proceed. False if the refresh should be aborted.