summaryrefslogtreecommitdiffstats
path: root/dom/security/nsCSPContext.cpp
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-14 22:22:59 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-14 22:22:59 +0200
commit7d67148f52d158b80841f83dc7a023c637e11bf0 (patch)
treecc034b4986a8e8d8c068c92e8e03f9d35a0dd78f /dom/security/nsCSPContext.cpp
parentc73c73b7978d7fc12e0dc07bb7c8f3babd497b8c (diff)
downloadUXP-7d67148f52d158b80841f83dc7a023c637e11bf0.tar
UXP-7d67148f52d158b80841f83dc7a023c637e11bf0.tar.gz
UXP-7d67148f52d158b80841f83dc7a023c637e11bf0.tar.lz
UXP-7d67148f52d158b80841f83dc7a023c637e11bf0.tar.xz
UXP-7d67148f52d158b80841f83dc7a023c637e11bf0.zip
moebius#159: CSP - support for "frame-ancestors" in "Content-Security-Policy-Report-Only"
https://github.com/MoonchildProductions/moebius/pull/159
Diffstat (limited to 'dom/security/nsCSPContext.cpp')
-rw-r--r--dom/security/nsCSPContext.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/dom/security/nsCSPContext.cpp b/dom/security/nsCSPContext.cpp
index 5e435d4ca..a7517f65e 100644
--- a/dom/security/nsCSPContext.cpp
+++ b/dom/security/nsCSPContext.cpp
@@ -219,14 +219,6 @@ nsCSPContext::permitsInternal(CSPDirective aDir,
nsAutoString violatedDirective;
for (uint32_t p = 0; p < mPolicies.Length(); p++) {
-
- // According to the W3C CSP spec, frame-ancestors checks are ignored for
- // report-only policies (when "monitoring").
- if (aDir == nsIContentSecurityPolicy::FRAME_ANCESTORS_DIRECTIVE &&
- mPolicies[p]->getReportOnlyFlag()) {
- continue;
- }
-
if (!mPolicies[p]->permits(aDir,
aContentLocation,
aNonce,