diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-14 22:22:59 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-14 22:22:59 +0200 |
commit | 7d67148f52d158b80841f83dc7a023c637e11bf0 (patch) | |
tree | cc034b4986a8e8d8c068c92e8e03f9d35a0dd78f /dom/security/nsCSPContext.cpp | |
parent | c73c73b7978d7fc12e0dc07bb7c8f3babd497b8c (diff) | |
download | UXP-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.cpp | 8 |
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, |