зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1451094 - Fix null loadinfo deref. r=mayhemer
This commit is contained in:
Родитель
a7ca95c9c6
Коммит
c0f8ff4e4d
|
@ -2219,7 +2219,9 @@ HttpBaseChannel::RedirectTo(nsIURI *targetURI)
|
||||||
// Only Web Extensions are allowed to redirect a channel to a data:
|
// Only Web Extensions are allowed to redirect a channel to a data:
|
||||||
// URI. To avoid any bypasses after the channel was flagged by
|
// URI. To avoid any bypasses after the channel was flagged by
|
||||||
// the WebRequst API, we are dropping the flag here.
|
// the WebRequst API, we are dropping the flag here.
|
||||||
mLoadInfo->SetAllowInsecureRedirectToDataURI(false);
|
if (mLoadInfo) {
|
||||||
|
mLoadInfo->SetAllowInsecureRedirectToDataURI(false);
|
||||||
|
}
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче