summaryrefslogtreecommitdiff
path: root/dom
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-07-05 19:40:43 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-07-05 19:40:43 +0200
commit888beafec11c670c52c89b3dc9268f893cfa7b6c (patch)
tree621a9b89a8dace83ff21e61c554c4dc12451fa9b /dom
parent5acf9e28bd864db0333530d639a343cb6f976ae6 (diff)
downloaduxp-888beafec11c670c52c89b3dc9268f893cfa7b6c.tar.gz
nsIContentPolicy::TYPE_DOCUMENT - Use "aLoadInfo->ContextForTopLevelLoad()" instead of "aLoadInfo->LoadingNode()"
Issue mcp-graveyard/UXP#600
Diffstat (limited to 'dom')
-rw-r--r--dom/security/nsContentSecurityManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/security/nsContentSecurityManager.cpp b/dom/security/nsContentSecurityManager.cpp
index 4ee9b48777..570730312b 100644
--- a/dom/security/nsContentSecurityManager.cpp
+++ b/dom/security/nsContentSecurityManager.cpp
@@ -303,7 +303,7 @@ DoContentSecurityChecks(nsIChannel* aChannel, nsILoadInfo* aLoadInfo)
case nsIContentPolicy::TYPE_DOCUMENT: {
mimeTypeGuess = EmptyCString();
- requestingContext = aLoadInfo->LoadingNode();
+ requestingContext = aLoadInfo->ContextForTopLevelLoad();
break;
}