Bug 1958804: Add CSP to appPicker.xhtml r=tschuster,mossop

Differential Revision: https://phabricator.services.mozilla.com/D244837
This commit is contained in:
Simon Friedberger
2025-04-14 08:10:53 +00:00
parent ee5dc08aa7
commit e3652e1e4d
3 changed files with 9 additions and 8 deletions

View File

@@ -648,8 +648,10 @@ bool nsContentSecurityUtils::IsEvalAllowed(JSContext* cx,
if (StaticPrefs::
security_allow_unsafe_dangerous_privileged_evil_eval_AtStartup()) {
MOZ_LOG(sCSMLog, LogLevel::Debug,
("Allowing eval() because security.allow_unsafe_dangerous_priviliged_evil_eval is enabled."));
MOZ_LOG(
sCSMLog, LogLevel::Debug,
("Allowing eval() because "
"security.allow_unsafe_dangerous_priviliged_evil_eval is enabled."));
return true;
}
@@ -1967,7 +1969,6 @@ void nsContentSecurityUtils::AssertChromePageHasCSP(Document* aDocument) {
static nsLiteralCString sAllowedChromePagesWithNoCSP[] = {
"chrome://browser/content/shopping/review-checker.xhtml"_ns,
"chrome://geckoview/content/geckoview.xhtml"_ns,
"chrome://global/content/appPicker.xhtml"_ns,
// Test files
"chrome://mochikit/"_ns,
"chrome://mochitests/"_ns,