From fc437d2dfd151ec636b47c1fecc6c1e4915d0b0a Mon Sep 17 00:00:00 2001 From: xenofem Date: Wed, 3 Jan 2024 03:00:37 -0500 Subject: [PATCH] allow about:debugging --- allow-debugging.patch | 19 +++++++++++++++++++ flake.nix | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 allow-debugging.patch diff --git a/allow-debugging.patch b/allow-debugging.patch new file mode 100644 index 0000000..d495982 --- /dev/null +++ b/allow-debugging.patch @@ -0,0 +1,19 @@ +--- a/browser/components/enterprisepolicies/Policies.sys.mjs ++++ b/browser/components/enterprisepolicies/Policies.sys.mjs +@@ -1137,8 +1137,6 @@ export var Policies = { + "extensions.htmlaboutaddons.recommendations.enable", + false + ); +- // Block about:debugging +- blockAboutPage(manager, "about:debugging"); + } + if ("restricted_domains" in extensionSettings["*"]) { + let restrictedDomains = Services.prefs +@@ -1450,7 +1448,6 @@ export var Policies = { + if ("Default" in param) { + setAndLockPref("xpinstall.enabled", param.Default); + if (!param.Default) { +- blockAboutPage(manager, "about:debugging"); + setAndLockPref( + "browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", + false diff --git a/flake.nix b/flake.nix index eb1a110..a5fe61c 100644 --- a/flake.nix +++ b/flake.nix @@ -27,6 +27,11 @@ # restriction. # https://github.com/mozilla/policy-templates/issues/484 ./allow-searchengines-policy.patch + + # Firefox disables about:debugging when manual addon + # installation is disabled by policy, since it can be used + # to sideload. I want managed addons *and* debugging. + ./allow-debugging.patch ]; }); };