Bug 965413 part 8. Make HTTP redirects propagate along the load info. r=smaug

This commit is contained in:
Boris Zbarsky 2014-07-10 02:56:37 -04:00
parent c778318fb6
commit 9173c79f52

View File

@ -1915,6 +1915,9 @@ HttpBaseChannel::SetupReplacementChannel(nsIURI *newURI,
}
}
// Propagate our loadinfo if needed.
newChannel->SetLoadInfo(mLoadInfo);
nsCOMPtr<nsIHttpChannel> httpChannel = do_QueryInterface(newChannel);
if (!httpChannel)
return NS_OK; // no other options to set