summaryrefslogtreecommitdiffstats
path: root/extensions/permissions/nsContentBlocker.cpp
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-06-18 13:22:25 +0200
committerGitHub <noreply@github.com>2018-06-18 13:22:25 +0200
commit34302180b38e903c7c071b501cbc8be89efd56ec (patch)
treea64bc80cbee13acad97321f90a75c7bcd8bb7a62 /extensions/permissions/nsContentBlocker.cpp
parent4ee1656d4a0721d31039508e0d0abc79e3f38c8d (diff)
parent22f7e8f8a74ee5ff83a0b76c789d011bd54244b9 (diff)
downloadUXP-34302180b38e903c7c071b501cbc8be89efd56ec.tar
UXP-34302180b38e903c7c071b501cbc8be89efd56ec.tar.gz
UXP-34302180b38e903c7c071b501cbc8be89efd56ec.tar.lz
UXP-34302180b38e903c7c071b501cbc8be89efd56ec.tar.xz
UXP-34302180b38e903c7c071b501cbc8be89efd56ec.zip
Merge pull request #509 from janekptacijarabaci/context-menu_save-link-as_principal_1
Added "nsIContentPolicy::TYPE_SAVEAS_DOWNLOAD": The context menu - "Save Link As" feature should use the loading principal instead of the system principal
Diffstat (limited to 'extensions/permissions/nsContentBlocker.cpp')
-rw-r--r--extensions/permissions/nsContentBlocker.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/extensions/permissions/nsContentBlocker.cpp b/extensions/permissions/nsContentBlocker.cpp
index cc2162b70..391785dc3 100644
--- a/extensions/permissions/nsContentBlocker.cpp
+++ b/extensions/permissions/nsContentBlocker.cpp
@@ -23,6 +23,7 @@
#define BEHAVIOR_NOFOREIGN 3
// From nsIContentPolicy
+// and nsIContentPolicyBase.idl: Their order must be retained!
static const char *kTypeString[] = {
"other",
"script",
@@ -59,6 +60,13 @@ static const char *kTypeString[] = {
"", // TYPE_INTERNAL_XMLHTTPREQUEST
"", // TYPE_INTERNAL_EVENTSOURCE
"", // TYPE_INTERNAL_SERVICE_WORKER
+ "", // TYPE_INTERNAL_SCRIPT_PRELOAD
+ "", // TYPE_INTERNAL_IMAGE
+ "", // TYPE_INTERNAL_IMAGE_PRELOAD
+ "", // TYPE_INTERNAL_STYLESHEET
+ "", // TYPE_INTERNAL_STYLESHEET_PRELOAD
+ "", // TYPE_INTERNAL_IMAGE_FAVICON
+ "saveas_download",
};
#define NUMBER_OF_TYPES MOZ_ARRAY_LENGTH(kTypeString)