diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-06-18 00:49:45 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-06-18 00:49:45 +0200 |
commit | aebdb991f41d3cc864451ce1c09c7b7c691cbe76 (patch) | |
tree | 9326d234305e15af1fe45b2fe528a535d426c1a0 /extensions/permissions | |
parent | 6e567403cb5d8e7732180c920e5c7d99339bc8c7 (diff) | |
download | UXP-aebdb991f41d3cc864451ce1c09c7b7c691cbe76.tar UXP-aebdb991f41d3cc864451ce1c09c7b7c691cbe76.tar.gz UXP-aebdb991f41d3cc864451ce1c09c7b7c691cbe76.tar.lz UXP-aebdb991f41d3cc864451ce1c09c7b7c691cbe76.tar.xz UXP-aebdb991f41d3cc864451ce1c09c7b7c691cbe76.zip |
nsIContentPolicy: Their order (in nsIContentPolicyBase.idl) must be retained in nsContentBlocker.cpp
Diffstat (limited to 'extensions/permissions')
-rw-r--r-- | extensions/permissions/nsContentBlocker.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/extensions/permissions/nsContentBlocker.cpp b/extensions/permissions/nsContentBlocker.cpp index 278ec21a0..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", @@ -46,7 +47,6 @@ static const char *kTypeString[] = { "fetch", "image", "manifest", - "saveas_download", "", // TYPE_INTERNAL_SCRIPT "", // TYPE_INTERNAL_WORKER "", // TYPE_INTERNAL_SHARED_WORKER @@ -60,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) |