mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
nsIContentPolicy: Their order (in nsIContentPolicyBase.idl) must be retained in nsContentBlocker.cpp
This commit is contained in:
parent
d180a351b0
commit
0fac4df87d
2 changed files with 9 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue