mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 11:57:32 +09:00
nsIContentPolicy: Numbers should not be omitted in nsIContentPolicyBase.idl, rewrite uuid
This commit is contained in:
parent
0fac4df87d
commit
65c35bbe06
4 changed files with 15 additions and 14 deletions
|
|
@ -20,7 +20,7 @@ interface nsIPrincipal;
|
||||||
* by launching a dialog to prompt the user for something).
|
* by launching a dialog to prompt the user for something).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[scriptable,uuid(d472863b-adb2-4448-aa8f-6c33c0c4c633)]
|
[scriptable,uuid(64a5ae16-6836-475c-9938-4b6cc1eee8fb)]
|
||||||
interface nsIContentPolicy : nsIContentPolicyBase
|
interface nsIContentPolicy : nsIContentPolicyBase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ typedef unsigned long nsContentPolicyType;
|
||||||
* by launching a dialog to prompt the user for something).
|
* by launching a dialog to prompt the user for something).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[scriptable,uuid(e8046cd0-3b32-4065-ad78-4099a9bb2e35)]
|
[scriptable,uuid(d6ab1d11-8e24-4db4-8582-c40a78281737)]
|
||||||
interface nsIContentPolicyBase : nsISupports
|
interface nsIContentPolicyBase : nsISupports
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
@ -181,11 +181,6 @@ interface nsIContentPolicyBase : nsISupports
|
||||||
*/
|
*/
|
||||||
const nsContentPolicyType TYPE_WEB_MANIFEST = 22;
|
const nsContentPolicyType TYPE_WEB_MANIFEST = 22;
|
||||||
|
|
||||||
/**
|
|
||||||
* Indicates an save-as link download from the front-end code.
|
|
||||||
*/
|
|
||||||
const nsContentPolicyType TYPE_SAVEAS_DOWNLOAD = 43;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates an internal constant for scripts loaded through script
|
* Indicates an internal constant for scripts loaded through script
|
||||||
* elements.
|
* elements.
|
||||||
|
|
@ -334,11 +329,17 @@ interface nsIContentPolicyBase : nsISupports
|
||||||
*/
|
*/
|
||||||
const nsContentPolicyType TYPE_INTERNAL_IMAGE_FAVICON = 41;
|
const nsContentPolicyType TYPE_INTERNAL_IMAGE_FAVICON = 41;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicates an save-as link download from the front-end code.
|
||||||
|
*/
|
||||||
|
const nsContentPolicyType TYPE_SAVEAS_DOWNLOAD = 42;
|
||||||
|
|
||||||
/* When adding new content types, please update nsContentBlocker,
|
/* When adding new content types, please update nsContentBlocker,
|
||||||
* NS_CP_ContentTypeName, nsCSPContext, all nsIContentPolicy
|
* NS_CP_ContentTypeName, nsCSPContext, CSP_ContentTypeToDirective,
|
||||||
* implementations, the static_assert in dom/cache/DBSchema.cpp,
|
* DoContentSecurityChecks, all nsIContentPolicy implementations, the
|
||||||
* and other things that are not listed here that are related to
|
* static_assert in dom/cache/DBSchema.cpp, nsPermissionManager.cpp,
|
||||||
* nsIContentPolicy. */
|
* and other things that are not listed here that are related
|
||||||
|
* to nsIContentPolicy. */
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ interface nsIDOMElement;
|
||||||
* by launching a dialog to prompt the user for something).
|
* by launching a dialog to prompt the user for something).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[scriptable,uuid(2215d135-df0d-445b-bb49-f11a4855f2a1)]
|
[scriptable,uuid(1553a476-8a14-410b-8ecc-47f48e937392)]
|
||||||
interface nsISimpleContentPolicy : nsIContentPolicyBase
|
interface nsISimpleContentPolicy : nsIContentPolicyBase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
4
dom/cache/DBSchema.cpp
vendored
4
dom/cache/DBSchema.cpp
vendored
|
|
@ -269,7 +269,6 @@ static_assert(nsIContentPolicy::TYPE_INVALID == 0 &&
|
||||||
nsIContentPolicy::TYPE_FETCH == 20 &&
|
nsIContentPolicy::TYPE_FETCH == 20 &&
|
||||||
nsIContentPolicy::TYPE_IMAGESET == 21 &&
|
nsIContentPolicy::TYPE_IMAGESET == 21 &&
|
||||||
nsIContentPolicy::TYPE_WEB_MANIFEST == 22 &&
|
nsIContentPolicy::TYPE_WEB_MANIFEST == 22 &&
|
||||||
nsIContentPolicy::TYPE_SAVEAS_DOWNLOAD == 43 &&
|
|
||||||
nsIContentPolicy::TYPE_INTERNAL_SCRIPT == 23 &&
|
nsIContentPolicy::TYPE_INTERNAL_SCRIPT == 23 &&
|
||||||
nsIContentPolicy::TYPE_INTERNAL_WORKER == 24 &&
|
nsIContentPolicy::TYPE_INTERNAL_WORKER == 24 &&
|
||||||
nsIContentPolicy::TYPE_INTERNAL_SHARED_WORKER == 25 &&
|
nsIContentPolicy::TYPE_INTERNAL_SHARED_WORKER == 25 &&
|
||||||
|
|
@ -288,7 +287,8 @@ static_assert(nsIContentPolicy::TYPE_INVALID == 0 &&
|
||||||
nsIContentPolicy::TYPE_INTERNAL_IMAGE_PRELOAD == 38 &&
|
nsIContentPolicy::TYPE_INTERNAL_IMAGE_PRELOAD == 38 &&
|
||||||
nsIContentPolicy::TYPE_INTERNAL_STYLESHEET == 39 &&
|
nsIContentPolicy::TYPE_INTERNAL_STYLESHEET == 39 &&
|
||||||
nsIContentPolicy::TYPE_INTERNAL_STYLESHEET_PRELOAD == 40 &&
|
nsIContentPolicy::TYPE_INTERNAL_STYLESHEET_PRELOAD == 40 &&
|
||||||
nsIContentPolicy::TYPE_INTERNAL_IMAGE_FAVICON == 41,
|
nsIContentPolicy::TYPE_INTERNAL_IMAGE_FAVICON == 41 &&
|
||||||
|
nsIContentPolicy::TYPE_SAVEAS_DOWNLOAD == 42,
|
||||||
"nsContentPolicyType values are as expected");
|
"nsContentPolicyType values are as expected");
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue