bug 152279:Transport shouldn't fire status and progress after stop button been clicked for stopping a document load

patch=antonio.xu@sun.com r=jkeiser@netscape.com sr=darin@netscape.com


git-svn-id: svn://10.0.0.236/trunk@124459 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pete.zha%sun.com
2002-07-02 02:52:22 +00:00
parent a2358254b9
commit 43e0182718

View File

@@ -3036,7 +3036,7 @@ NS_IMETHODIMP
nsHttpChannel::OnStatus(nsIRequest *req, nsISupports *ctx, nsresult status,
const PRUnichar *statusText)
{
if (mProgressSink)
if (mProgressSink && !mCanceled)
mProgressSink->OnStatus(this, mListenerContext, status, statusText);
return NS_OK;
@@ -3047,7 +3047,7 @@ NS_IMETHODIMP
nsHttpChannel::OnProgress(nsIRequest *req, nsISupports *ctx,
PRUint32 progress, PRUint32 progressMax)
{
if (mProgressSink)
if (mProgressSink && !mCanceled)
mProgressSink->OnProgress(this, mListenerContext, progress, progressMax);
return NS_OK;