Bug 1611238 - Enforce eval restrictions in the Parent Process/System Context r=ckerschb

Differential Revision: https://phabricator.services.mozilla.com/D60880

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tom Ritter 2020-01-24 14:04:27 +00:00
parent 73eff15f2c
commit e17d117cab

View File

@ -467,15 +467,7 @@ bool nsContentSecurityUtils::IsEvalAllowed(JSContext* cx,
fileName.get(), NS_ConvertUTF16toUTF8(aScript).get());
#endif
#if defined(RELEASE_OR_BETA) && !defined(EARLY_BETA_OR_EARLIER)
// Until we understand the events coming from release, we don't want to
// enforce eval restrictions on release. However there's no RELEASE define,
// only RELEASE_OR_BETA so we enforce eval restrictions on Nightly and Early
// Beta; but not Release or Late Beta.
return false;
#else
return true;
#endif
}
/* static */