summaryrefslogtreecommitdiff
path: root/dom/security
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
commit7eee8a9c39bcd5aee01316d11df71585ae22b5ea (patch)
tree621a9b89a8dace83ff21e61c554c4dc12451fa9b /dom/security
parentc3916ca1a0164dcb7742360a43d7ab36a80907fc (diff)
downloaduxp-7eee8a9c39bcd5aee01316d11df71585ae22b5ea.tar.gz
nsIContentPolicy::TYPE_DOCUMENT - Use "aLoadInfo->ContextForTopLevelLoad()" instead of "aLoadInfo->LoadingNode()"
Issue #600
Diffstat (limited to 'dom/security')
-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;
}