summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-17 09:43:40 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-17 09:43:40 +0200
commitbf9d01df16a703aa106c56c449980b45a47b0913 (patch)
tree9fde48206c5ac250697f350255a21cad9000ea26
parent07ee0792c9664d649fae8ae530b27462ee45f530 (diff)
downloadUXP-bf9d01df16a703aa106c56c449980b45a47b0913.tar
UXP-bf9d01df16a703aa106c56c449980b45a47b0913.tar.gz
UXP-bf9d01df16a703aa106c56c449980b45a47b0913.tar.lz
UXP-bf9d01df16a703aa106c56c449980b45a47b0913.tar.xz
UXP-bf9d01df16a703aa106c56c449980b45a47b0913.zip
Bug 1430758 - No CSP directive for nsIContentPolicy::TYPE_SAVEAS_DOWNLOAD
-rw-r--r--dom/security/nsCSPUtils.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/dom/security/nsCSPUtils.cpp b/dom/security/nsCSPUtils.cpp
index 49832f8f4..71c8e3433 100644
--- a/dom/security/nsCSPUtils.cpp
+++ b/dom/security/nsCSPUtils.cpp
@@ -258,6 +258,9 @@ CSP_ContentTypeToDirective(nsContentPolicyType aType)
case nsIContentPolicy::TYPE_CSP_REPORT:
return nsIContentSecurityPolicy::NO_DIRECTIVE;
+ case nsIContentPolicy::TYPE_SAVEAS_DOWNLOAD:
+ return nsIContentSecurityPolicy::NO_DIRECTIVE;
+
// Fall through to error for all other directives
default:
MOZ_ASSERT(false, "Can not map nsContentPolicyType to CSPDirective");