Bug 1955438. Add CSP to setp12password.xhtml r=tschuster

Depends on D242484

Differential Revision: https://phabricator.services.mozilla.com/D242485
This commit is contained in:
Simon Friedberger
2025-03-25 22:20:23 +00:00
parent 09106e88cb
commit 1c040bac76
4 changed files with 14 additions and 11 deletions

View File

@@ -1297,6 +1297,7 @@ static nsLiteralCString sStyleSrcUnsafeInlineAllowList[] = {
"chrome://pippki/content/downloadcert.xhtml"_ns,
"chrome://pippki/content/editcacert.xhtml"_ns,
"chrome://pippki/content/load_device.xhtml"_ns,
"chrome://pippki/content/setp12password.xhtml"_ns,
};
// img-src data: blob:
static nsLiteralCString sImgSrcDataBlobAllowList[] = {
@@ -1960,7 +1961,6 @@ void nsContentSecurityUtils::AssertChromePageHasCSP(Document* aDocument) {
"chrome://global/content/selectDialog.xhtml"_ns,
"chrome://global/content/win.xhtml"_ns,
"chrome://layoutdebug/content/layoutdebug.xhtml"_ns,
"chrome://pippki/content/setp12password.xhtml"_ns,
// Test files
"chrome://mochikit/"_ns,
"chrome://mochitests/"_ns,