summaryrefslogtreecommitdiffstats
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
parentc3916ca1a0164dcb7742360a43d7ab36a80907fc (diff)
downloadUXP-7eee8a9c39bcd5aee01316d11df71585ae22b5ea.tar
UXP-7eee8a9c39bcd5aee01316d11df71585ae22b5ea.tar.gz
UXP-7eee8a9c39bcd5aee01316d11df71585ae22b5ea.tar.lz
UXP-7eee8a9c39bcd5aee01316d11df71585ae22b5ea.tar.xz
UXP-7eee8a9c39bcd5aee01316d11df71585ae22b5ea.zip
nsIContentPolicy::TYPE_DOCUMENT - Use "aLoadInfo->ContextForTopLevelLoad()" instead of "aLoadInfo->LoadingNode()"
Issue #600
-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 4ee9b4877..570730312 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;
}