about summary refs log tree commit diff
path: root/pkgs/applications/networking/browsers
diff options
context:
space:
mode:
authorInfinidoge <infinidoge@inx.moe>2023-11-14 09:40:31 -0500
committerInfinidoge <infinidoge@inx.moe>2023-11-14 09:46:20 -0500
commitc09e1762318d2d078b2590b5702710ded49bc287 (patch)
tree30578355f44164a603363835fd057c86b26dc677 /pkgs/applications/networking/browsers
parenta997db8e4fd2339e75afec4ea0ccd13d83327bf2 (diff)
firefox: consider sideloading capability in extension handling
Diffstat (limited to 'pkgs/applications/networking/browsers')
-rw-r--r--pkgs/applications/networking/browsers/firefox/wrapper.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/networking/browsers/firefox/wrapper.nix b/pkgs/applications/networking/browsers/firefox/wrapper.nix
index 7ff74a971ca6a..0b5fca6adcb94 100644
--- a/pkgs/applications/networking/browsers/firefox/wrapper.nix
+++ b/pkgs/applications/networking/browsers/firefox/wrapper.nix
@@ -106,8 +106,8 @@ let
       # and an extid attribute
       extensions = if nameArray != (lib.unique nameArray) then
         throw "Firefox addon name needs to be unique"
-      else if browser.requireSigning then
-        throw "Nix addons are only supported with signature enforcement disabled"
+      else if browser.requireSigning || !browser.allowAddonSideload then
+        throw "Nix addons are only supported with signature enforcement disabled and addon sideloading enabled (eg. LibreWolf)"
       else builtins.map (a:
         if ! (builtins.hasAttr "extid" a) then
         throw "nixExtensions has an invalid entry. Missing extid attribute. Please use fetchfirefoxaddon"