diff --git a/dom/security/nsCSPContext.cpp b/dom/security/nsCSPContext.cpp index ad9b33bb2e..2eeca7d5f6 100644 --- a/dom/security/nsCSPContext.cpp +++ b/dom/security/nsCSPContext.cpp @@ -648,8 +648,6 @@ nsCSPContext::GetAllowsInline(CSPDirective aDirective, keyword, observerTopic) \ case nsIContentSecurityPolicy::VIOLATION_TYPE_ ## violationType : \ PR_BEGIN_MACRO \ - static_assert(directive##_SRC_DIRECTIVE == SCRIPT_SRC_DIRECTIVE || \ - directive##_SRC_DIRECTIVE == STYLE_SRC_DIRECTIVE); \ if(CSPService::sCSPReportingEnabled && \ !mPolicies[p]->allows(directive##_SRC_DIRECTIVE, keyword, nonceOrHash, \ false)) { \