mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-27 01:27:30 +09:00
dom/security: remove terse static assert from upstream changes
This commit is contained in:
parent
d4f1c1faed
commit
0d63037e56
1 changed files with 0 additions and 2 deletions
|
|
@ -648,8 +648,6 @@ nsCSPContext::GetAllowsInline(CSPDirective aDirective,
|
||||||
keyword, observerTopic) \
|
keyword, observerTopic) \
|
||||||
case nsIContentSecurityPolicy::VIOLATION_TYPE_ ## violationType : \
|
case nsIContentSecurityPolicy::VIOLATION_TYPE_ ## violationType : \
|
||||||
PR_BEGIN_MACRO \
|
PR_BEGIN_MACRO \
|
||||||
static_assert(directive##_SRC_DIRECTIVE == SCRIPT_SRC_DIRECTIVE || \
|
|
||||||
directive##_SRC_DIRECTIVE == STYLE_SRC_DIRECTIVE); \
|
|
||||||
if(CSPService::sCSPReportingEnabled && \
|
if(CSPService::sCSPReportingEnabled && \
|
||||||
!mPolicies[p]->allows(directive##_SRC_DIRECTIVE, keyword, nonceOrHash, \
|
!mPolicies[p]->allows(directive##_SRC_DIRECTIVE, keyword, nonceOrHash, \
|
||||||
false)) { \
|
false)) { \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue