зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1662189
- Enforce eval() restrictions on release r=freddyb,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D88882
This commit is contained in:
Родитель
7acc673838
Коммит
d498aa5e16
|
@ -556,13 +556,7 @@ bool nsContentSecurityUtils::IsEvalAllowed(JSContext* cx,
|
||||||
fileName.get(), trimmedScript.get());
|
fileName.get(), trimmedScript.get());
|
||||||
#endif
|
#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;
|
return false;
|
||||||
#else
|
|
||||||
return true;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* static */
|
/* static */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче