From 62d535967977ea64884e4418d78f1dc245e682e1 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Fri, 25 Aug 2017 09:18:29 +0200 Subject: CSP 2 - ignore (x-)frame-options if CSP with frame-ancestors directive exists --- dom/interfaces/security/nsIContentSecurityPolicy.idl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dom/interfaces') diff --git a/dom/interfaces/security/nsIContentSecurityPolicy.idl b/dom/interfaces/security/nsIContentSecurityPolicy.idl index ade5b1243..51ca46f2a 100644 --- a/dom/interfaces/security/nsIContentSecurityPolicy.idl +++ b/dom/interfaces/security/nsIContentSecurityPolicy.idl @@ -97,6 +97,11 @@ interface nsIContentSecurityPolicy : nsISerializable */ readonly attribute bool blockAllMixedContent; + /** + * Returns whether this policy enforces the frame-ancestors directive. + */ + readonly attribute bool enforcesFrameAncestors; + /** * Obtains the referrer policy (as integer) for this browsing context as * specified in CSP. If there are multiple policies and... -- cgit v1.2.3 From c3039dadd95f5487e84311a9719604fa901aacd7 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sat, 3 Mar 2018 11:21:43 +0100 Subject: Add support for CSP v3 "worker-src" directive --- dom/interfaces/security/nsIContentSecurityPolicy.idl | 1 + 1 file changed, 1 insertion(+) (limited to 'dom/interfaces') diff --git a/dom/interfaces/security/nsIContentSecurityPolicy.idl b/dom/interfaces/security/nsIContentSecurityPolicy.idl index 51ca46f2a..da4297f33 100644 --- a/dom/interfaces/security/nsIContentSecurityPolicy.idl +++ b/dom/interfaces/security/nsIContentSecurityPolicy.idl @@ -61,6 +61,7 @@ interface nsIContentSecurityPolicy : nsISerializable 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; /** * Accessor method for a read-only string version of the policy at a given -- cgit v1.2.3