From d498aa5e16b99237686f66e3090e3a6a5da6718d Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Wed, 2 Sep 2020 20:49:04 +0000 Subject: [PATCH] Bug 1662189 - Enforce eval() restrictions on release r=freddyb,ckerschb Differential Revision: https://phabricator.services.mozilla.com/D88882 --- dom/security/nsContentSecurityUtils.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dom/security/nsContentSecurityUtils.cpp b/dom/security/nsContentSecurityUtils.cpp index 6e47f8b61132..c49393742afe 100644 --- a/dom/security/nsContentSecurityUtils.cpp +++ b/dom/security/nsContentSecurityUtils.cpp @@ -556,13 +556,7 @@ bool nsContentSecurityUtils::IsEvalAllowed(JSContext* cx, fileName.get(), trimmedScript.get()); #endif -#ifdef EARLY_BETA_OR_EARLIER - // Until we understand the events coming from release, we don't want to - // enforce eval restrictions on release. Limiting to Nightly and early beta. return false; -#else - return true; -#endif } /* static */