зеркало из https://github.com/mozilla/pjs.git
bug #129795 (r=darin@netscape.com, swr=alecf@netscape.com) wrong document channel assertions are firing during redirects...
This commit is contained in:
Родитель
7b7c5c0af5
Коммит
2c65efe7ad
|
@ -395,8 +395,14 @@ nsLoadGroup::SetDefaultLoadRequest(nsIRequest *aRequest)
|
||||||
{
|
{
|
||||||
mDefaultLoadRequest = aRequest;
|
mDefaultLoadRequest = aRequest;
|
||||||
// Inherit the group load flags from the default load request
|
// Inherit the group load flags from the default load request
|
||||||
if (mDefaultLoadRequest)
|
if (mDefaultLoadRequest) {
|
||||||
mDefaultLoadRequest->GetLoadFlags(&mLoadFlags);
|
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)
|
// Else, do not change the group's load flags (see bug 95981)
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче