bug #129795 (r=darin@netscape.com, swr=alecf@netscape.com) wrong document channel assertions are firing during redirects...

This commit is contained in:
rpotts%netscape.com 2002-05-09 20:37:50 +00:00
Родитель 6a00af1441
Коммит c9c3d0caab
1 изменённых файлов: 7 добавлений и 1 удалений

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

@ -395,8 +395,14 @@ nsLoadGroup::SetDefaultLoadRequest(nsIRequest *aRequest)
{
mDefaultLoadRequest = aRequest;
// Inherit the group load flags from the default load request
if (mDefaultLoadRequest)
if (mDefaultLoadRequest) {
mDefaultLoadRequest->GetLoadFlags(&mLoadFlags);
//
// Mask off any bits that are not part of the nsIRequest flags.
// in particular, nsIChannel::LOAD_DOCUMENT_URI...
//
mLoadFlags &= 0xFFFF;
}
// Else, do not change the group's load flags (see bug 95981)
return NS_OK;
}