summaryrefslogtreecommitdiffstats
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
parent39c7be96de7deb2a6929d6b61013e8ad177ea8ba (diff)
parent7eee8a9c39bcd5aee01316d11df71585ae22b5ea (diff)
downloadUXP-06ccf0f73ade5b436d2e7e00f81db7aebf7960cf.tar
UXP-06ccf0f73ade5b436d2e7e00f81db7aebf7960cf.tar.gz
UXP-06ccf0f73ade5b436d2e7e00f81db7aebf7960cf.tar.lz
UXP-06ccf0f73ade5b436d2e7e00f81db7aebf7960cf.tar.xz
UXP-06ccf0f73ade5b436d2e7e00f81db7aebf7960cf.zip
Merge pull request #601 from janekptacijarabaci/security_blocking_data_1_1
nsIContentPolicy::TYPE_DOCUMENT - Use "aLoadInfo->ContextForTopLevelLoad()" instead of "aLoadInfo->LoadingNode()"
-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;
}