Bug #33156 --> implement real progress as a percentage of the document download.

git-svn-id: svn://10.0.0.236/trunk@67092 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mscott%netscape.com 2000-04-25 05:52:10 +00:00
parent 5605b3ca71
commit 3126b8a1cd

View File

@ -666,7 +666,6 @@ nsBrowserInstance::ForwardButtonPopup(nsIDOMNode * aParent)
return NS_ERROR_FAILURE;
}
PRBool hasChildren=PR_FALSE;
nsresult rv;
@ -1471,6 +1470,9 @@ NS_IMETHODIMP nsBrowserInstance::OnProgressChange(nsIChannel* aChannel,
PRInt32 aCurSelfProgress, PRInt32 aMaxSelfProgress,
PRInt32 aCurTotalProgress, PRInt32 aMaxTotalProgress)
{
EnsureXULBrowserWindow();
if(mXULBrowserWindow)
mXULBrowserWindow->OnProgress(aChannel, aCurTotalProgress, aMaxTotalProgress);
return NS_OK;
}