mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
103b1d6c81
commit
544402e066
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user