mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
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:
parent
73eff15f2c
commit
e17d117cab
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user