mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 08:48:07 +00:00
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:
parent
e5ecd9e189
commit
3e8306773b
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user