summaryrefslogtreecommitdiff
path: root/dom/security/nsContentSecurityManager.cpp
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-07-05 22:22:25 +0200
committerGitHub <noreply@github.com>2018-07-05 22:22:25 +0200
commit06ccf0f73ade5b436d2e7e00f81db7aebf7960cf (patch)
treeaf2d06fed0e53ba3ef4c77762ec41132b3aa02e5 /dom/security/nsContentSecurityManager.cpp
parent39c7be96de7deb2a6929d6b61013e8ad177ea8ba (diff)
parent7eee8a9c39bcd5aee01316d11df71585ae22b5ea (diff)
downloaduxp-06ccf0f73ade5b436d2e7e00f81db7aebf7960cf.tar.gz
Merge pull request #601 from janekptacijarabaci/security_blocking_data_1_1
nsIContentPolicy::TYPE_DOCUMENT - Use "aLoadInfo->ContextForTopLevelLoad()" instead of "aLoadInfo->LoadingNode()"
Diffstat (limited to 'dom/security/nsContentSecurityManager.cpp')
-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;
}