mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
bug 57840, tre blocker, r=gagan,don
This commit is contained in:
parent
4055424be3
commit
056b6817df
@ -1766,11 +1766,13 @@ nsresult nsHTTPChannel::Redirect(const char *aNewLocation,
|
||||
rv = channel->SetOriginalURI(mOriginalURI);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsCOMPtr<nsIChannel> tempChannel;
|
||||
rv = mLoadGroup->GetDefaultLoadChannel(getter_AddRefs(tempChannel));
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
if (tempChannel == this) {
|
||||
mLoadGroup->SetDefaultLoadChannel(channel);
|
||||
if (mLoadGroup) {
|
||||
nsCOMPtr<nsIChannel> tempChannel;
|
||||
rv = mLoadGroup->GetDefaultLoadChannel(getter_AddRefs(tempChannel));
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
if (tempChannel == this) {
|
||||
mLoadGroup->SetDefaultLoadChannel(channel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user