From 830653872ba0c453463c20d32d29d61d85d495d6 Mon Sep 17 00:00:00 2001 From: Tom Schuster Date: Mon, 24 Mar 2025 17:36:39 +0000 Subject: [PATCH] Bug 1950311 - Add CSP to devtool's webextension-fallback.html. r=devtools-reviewers,extension-reviewers,ochameau,robwu Differential Revision: https://phabricator.services.mozilla.com/D242342 --- devtools/shared/webextension-fallback.html | 1 + dom/security/nsContentSecurityUtils.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/shared/webextension-fallback.html b/devtools/shared/webextension-fallback.html index 70d64b1e255e..60556118767b 100644 --- a/devtools/shared/webextension-fallback.html +++ b/devtools/shared/webextension-fallback.html @@ -3,5 +3,6 @@ - file, You can obtain one at https://mozilla.org/MPL/2.0/. --> + Web Extension Fallback Document

Your addon does not have any document opened yet.

diff --git a/dom/security/nsContentSecurityUtils.cpp b/dom/security/nsContentSecurityUtils.cpp index a1c0a8ac8016..5cfb828fb82d 100644 --- a/dom/security/nsContentSecurityUtils.cpp +++ b/dom/security/nsContentSecurityUtils.cpp @@ -1951,7 +1951,6 @@ void nsContentSecurityUtils::AssertChromePageHasCSP(Document* aDocument) { "chrome://browser/content/shopping/review-checker.xhtml"_ns, "chrome://browser/content/webext-panels.xhtml"_ns, "chrome://browser/content/webrtcIndicator.xhtml"_ns, - "chrome://devtools/content/shared/webextension-fallback.html"_ns, "chrome://extensions/content/dummy.xhtml"_ns, "chrome://geckoview/content/geckoview.xhtml"_ns, "chrome://global/content/alerts/alert.xhtml"_ns,