nsIContentPolicy::TYPE_DOCUMENT - Use "aLoadInfo->ContextForTopLevelLoad()" instead of "aLoadInfo->LoadingNode()"

Issue #600
This commit is contained in:
janekptacijarabaci 2018-07-05 19:40:43 +02:00 committed by Roy Tam
commit df880ae53f

View file

@ -303,7 +303,7 @@ DoContentSecurityChecks(nsIChannel* aChannel, nsILoadInfo* aLoadInfo)
case nsIContentPolicy::TYPE_DOCUMENT: {
mimeTypeGuess = EmptyCString();
requestingContext = aLoadInfo->LoadingNode();
requestingContext = aLoadInfo->ContextForTopLevelLoad();
break;
}