mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 23:07:33 +09:00
Issue #2728 - Remove obsolete CSP referrer policy.
This has been superseded by the dedicated Referrer-policy header. Resolves #2728
This commit is contained in:
parent
d7f01911b8
commit
0331e633bd
16 changed files with 14 additions and 606 deletions
|
|
@ -52,18 +52,17 @@ interface nsIContentSecurityPolicy : nsISerializable
|
|||
const unsigned short REFLECTED_XSS_DIRECTIVE = 12;
|
||||
const unsigned short BASE_URI_DIRECTIVE = 13;
|
||||
const unsigned short FORM_ACTION_DIRECTIVE = 14;
|
||||
const unsigned short REFERRER_DIRECTIVE = 15;
|
||||
const unsigned short WEB_MANIFEST_SRC_DIRECTIVE = 16;
|
||||
const unsigned short UPGRADE_IF_INSECURE_DIRECTIVE = 17;
|
||||
const unsigned short CHILD_SRC_DIRECTIVE = 18;
|
||||
const unsigned short BLOCK_ALL_MIXED_CONTENT = 19;
|
||||
const unsigned short REQUIRE_SRI_FOR = 20;
|
||||
const unsigned short SANDBOX_DIRECTIVE = 21;
|
||||
const unsigned short WORKER_SRC_DIRECTIVE = 22;
|
||||
const unsigned short SCRIPT_SRC_ELEM_DIRECTIVE = 23;
|
||||
const unsigned short SCRIPT_SRC_ATTR_DIRECTIVE = 24;
|
||||
const unsigned short STYLE_SRC_ELEM_DIRECTIVE = 25;
|
||||
const unsigned short STYLE_SRC_ATTR_DIRECTIVE = 26;
|
||||
const unsigned short WEB_MANIFEST_SRC_DIRECTIVE = 15;
|
||||
const unsigned short UPGRADE_IF_INSECURE_DIRECTIVE = 16;
|
||||
const unsigned short CHILD_SRC_DIRECTIVE = 17;
|
||||
const unsigned short BLOCK_ALL_MIXED_CONTENT = 18;
|
||||
const unsigned short REQUIRE_SRI_FOR = 19;
|
||||
const unsigned short SANDBOX_DIRECTIVE = 20;
|
||||
const unsigned short WORKER_SRC_DIRECTIVE = 21;
|
||||
const unsigned short SCRIPT_SRC_ELEM_DIRECTIVE = 22;
|
||||
const unsigned short SCRIPT_SRC_ATTR_DIRECTIVE = 23;
|
||||
const unsigned short STYLE_SRC_ELEM_DIRECTIVE = 24;
|
||||
const unsigned short STYLE_SRC_ATTR_DIRECTIVE = 25;
|
||||
|
||||
/**
|
||||
* Accessor method for a read-only string version of the policy at a given
|
||||
|
|
@ -105,21 +104,6 @@ interface nsIContentSecurityPolicy : nsISerializable
|
|||
*/
|
||||
readonly attribute bool enforcesFrameAncestors;
|
||||
|
||||
/**
|
||||
* Obtains the referrer policy (as integer) for this browsing context as
|
||||
* specified in CSP. If there are multiple policies and...
|
||||
* - only one sets a referrer policy: that policy is returned
|
||||
* - more than one sets different referrer policies: no-referrer is returned
|
||||
* - more than one set equivalent policies: that policy is returned
|
||||
* For the enumeration of policies see ReferrerPolicy.h and nsIHttpChannel.
|
||||
*
|
||||
* @param aPolicy
|
||||
* The referrer policy to use for the protected resource.
|
||||
* @return
|
||||
* true if a referrer policy is specified, false if it's unspecified.
|
||||
*/
|
||||
bool getReferrerPolicy(out unsigned long policy);
|
||||
|
||||
/**
|
||||
* Parse and install a CSP policy.
|
||||
* @param aPolicy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue