diff options
author | Infinidoge <infinidoge@inx.moe> | 2023-11-14 09:40:31 -0500 |
---|---|---|
committer | Infinidoge <infinidoge@inx.moe> | 2023-11-14 09:46:20 -0500 |
commit | c09e1762318d2d078b2590b5702710ded49bc287 (patch) | |
tree | 30578355f44164a603363835fd057c86b26dc677 /pkgs/applications/networking/browsers | |
parent | a997db8e4fd2339e75afec4ea0ccd13d83327bf2 (diff) |
firefox: consider sideloading capability in extension handling
Diffstat (limited to 'pkgs/applications/networking/browsers')
-rw-r--r-- | pkgs/applications/networking/browsers/firefox/wrapper.nix | 4 |
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" |