388523 make sure to call OnStartRequest even when we have a pending auth retry and the channel has been cancelled in the meantime r+sr=bz

This commit is contained in:
cbiesinger@gmx.at 2007-08-07 13:09:25 -07:00
parent 103b1d6c81
commit 544402e066

View File

@ -4322,6 +4322,15 @@ nsHttpChannel::OnStopRequest(nsIRequest *request, nsISupports *ctxt, nsresult st
return NS_OK;
}
// If DoAuthRetry failed, or if we have been cancelled since showing
// the auth. dialog, then we need to send OnStartRequest now
if (authRetry || (mAuthRetryPending && NS_FAILED(status))) {
NS_ASSERTION(NS_FAILED(status), "should have a failure code here");
// NOTE: since we have a failure status, we can ignore the return
// value from onStartRequest.
mListener->OnStartRequest(this, mListenerContext);
}
// if this transaction has been replaced, then bail.
if (mTransactionReplaced)
return NS_OK;