Bug #44176 --> pass in the length as the max progress for the download. This allows implementors of

nsIWebProgressLIstener to get notifications for ftp downloads.
r=valeski r=gagan
This commit is contained in:
mscott%netscape.com 2000-09-22 03:46:11 +00:00
parent e5ecd9e189
commit 3e8306773b

View File

@ -649,7 +649,7 @@ nsFTPChannel::OnStatus(nsIChannel *aChannel, nsISupports *aContext,
NS_IMETHODIMP
nsFTPChannel::OnProgress(nsIChannel* aChannel, nsISupports* aContext,
PRUint32 aProgress, PRUint32 aProgressMax) {
return mEventSink ? mEventSink->OnProgress(this, aContext, aProgress, aProgressMax) : NS_OK;
return mEventSink ? mEventSink->OnProgress(this, aContext, aProgress, (PRUint32) mContentLength) : NS_OK;
}