зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1443110: Add NullCheck for loadinfo within InitCSP. r=smaug
--HG-- extra : rebase_source : b2094c7185a76ada87cf4b3f9efd3359a1866438
This commit is contained in:
Родитель
14ef6810c9
Коммит
d5a80a58d9
|
@ -2939,7 +2939,7 @@ nsDocument::InitCSP(nsIChannel* aChannel)
|
|||
// In case this channel was instrument to discard the CSP, then
|
||||
// there is nothing for us to do here.
|
||||
nsCOMPtr<nsILoadInfo> loadInfo = aChannel->GetLoadInfo();
|
||||
if (loadInfo->GetAllowDocumentToBeAgnosticToCSP()) {
|
||||
if (loadInfo && loadInfo->GetAllowDocumentToBeAgnosticToCSP()) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче