bug 57840, tre blocker, r=gagan,don

This commit is contained in:
morse%netscape.com 2000-10-25 18:14:23 +00:00
parent 4055424be3
commit 056b6817df

View File

@ -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);
}
}
}