Bug 1451094 - Fix null loadinfo deref. r=mayhemer

This commit is contained in:
Christoph Kerschbaumer 2018-04-10 17:26:36 +02:00
Родитель a7ca95c9c6
Коммит c0f8ff4e4d
1 изменённых файлов: 3 добавлений и 1 удалений

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

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