mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
fixes bug 309391 "XMLHttpRequest fails to track proxy server failover" r=biesi
This commit is contained in:
parent
dbdcf13207
commit
6806dd1cde
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user