fixes bug 309391 "XMLHttpRequest fails to track proxy server failover" r=biesi

This commit is contained in:
darin%meer.net 2005-09-21 00:19:20 +00:00
parent dbdcf13207
commit 6806dd1cde

View File

@ -997,6 +997,16 @@ nsHttpChannel::ReplaceWithProxy(nsIProxyInfo *pi)
if (NS_FAILED(rv))
return rv;
// Inform consumers about this fake redirect
nsCOMPtr<nsIChannelEventSink> channelEventSink;
GetCallback(channelEventSink);
if (channelEventSink) {
PRUint32 flags = nsIChannelEventSink::REDIRECT_INTERNAL;
rv = channelEventSink->OnChannelRedirect(this, newChannel, flags);
if (NS_FAILED(rv))
return rv;
}
// open new channel
rv = newChannel->AsyncOpen(mListener, mListenerContext);
if (NS_FAILED(rv))