fixes bug 134203 "Some credit unions... cannot be accessed with current Mozilla"

r=morse, sr=rpotts, a=rjesup
This commit is contained in:
darin%netscape.com 2002-04-09 00:03:23 +00:00
Родитель 13c4539d6c
Коммит df38d5649c
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1465,9 +1465,14 @@ nsHttpChannel::ProcessRedirection(PRUint32 redirectType)
nsCOMPtr<nsIHttpChannel> httpChannel = do_QueryInterface(newChannel);
if (httpChannel) {
// update the DocumentURI indicator since we were just redirected
// update the DocumentURI indicator since we are being redirected.
// if this was a top-level document channel, then the new channel
// should have its mDocumentURI point to newURI; otherwise, we
// just need to pass along our mDocumentURI to the new channel.
if (newURI && (mURI == mDocumentURI))
httpChannel->SetDocumentURI(newURI);
else
httpChannel->SetDocumentURI(mDocumentURI);
// convey the referrer if one was used for this channel to the next one
if (mReferrer)
httpChannel->SetReferrer(mReferrer, mReferrerType);