Bug 1956782. Add CSP to layoutdebug.xhtml r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D243308
This commit is contained in:
Simon Friedberger
2025-04-03 10:04:56 +00:00
parent 5c58cd5b8f
commit c3f11a58b2
3 changed files with 130 additions and 46 deletions

View File

@@ -1284,6 +1284,7 @@ static nsLiteralCString sStyleSrcUnsafeInlineAllowList[] = {
"chrome://gfxsanity/content/sanitytest.html"_ns,
"chrome://global/content/commonDialog.xhtml"_ns,
"chrome://global/content/resetProfileProgress.xhtml"_ns,
"chrome://layoutdebug/content/layoutdebug.xhtml"_ns,
"chrome://mozapps/content/downloads/unknownContentType.xhtml"_ns,
"chrome://mozapps/content/handling/appChooser.xhtml"_ns,
"chrome://mozapps/content/preferences/changemp.xhtml"_ns,
@@ -1960,7 +1961,6 @@ void nsContentSecurityUtils::AssertChromePageHasCSP(Document* aDocument) {
"chrome://global/content/megalist/megalist.html"_ns,
"chrome://global/content/selectDialog.xhtml"_ns,
"chrome://global/content/win.xhtml"_ns,
"chrome://layoutdebug/content/layoutdebug.xhtml"_ns,
// Test files
"chrome://mochikit/"_ns,
"chrome://mochitests/"_ns,