diff options
author | Hilton Chain <hako@ultrarare.space> | 2024-12-11 23:30:12 +0800 |
---|---|---|
committer | Hilton Chain <hako@ultrarare.space> | 2024-12-13 13:07:45 +0800 |
commit | 4fe0608a5cc44e3f368dab98709d0ab4392a37ed (patch) | |
tree | d1075874c835b551bdc8eafda05a62c2b94d94f4 /nongnu/packages/patches/firefox-esr-compare-paths.patch | |
parent | 5a7e61a0a5bc191d8558a845bd724a0d41e0afbd (diff) |
nongnu: firefox-esr: Support Guix icecat browser extensions.
* nongnu/packages/patches/firefox-esr-compare-paths.patch: New file.
* nongnu/packages/patches/firefox-esr-use-system-wide-dir.patch: New file.
* nongnu/packages/mozilla.scm (firefox-esr)[source]: Add them.
[arguments]<#:configure-flags>: Allow unsigned system addons.
[native-search-paths]: Add ICECAT_SYSTEM_DIR.
Diffstat (limited to 'nongnu/packages/patches/firefox-esr-compare-paths.patch')
-rw-r--r-- | nongnu/packages/patches/firefox-esr-compare-paths.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nongnu/packages/patches/firefox-esr-compare-paths.patch b/nongnu/packages/patches/firefox-esr-compare-paths.patch new file mode 100644 index 00000000..dd113c79 --- /dev/null +++ b/nongnu/packages/patches/firefox-esr-compare-paths.patch @@ -0,0 +1,23 @@ +See comment in gnu/build/icecat-extension.scm. + +diff --git a/toolkit/mozapps/extensions/internal/XPIDatabase.sys.mjs b/toolkit/mozapps/extensions/internal/XPIDatabase.sys.mjs +index 0b885f6..0bbfbee 100644 +--- a/toolkit/mozapps/extensions/internal/XPIDatabase.sys.mjs ++++ b/toolkit/mozapps/extensions/internal/XPIDatabase.sys.mjs +@@ -3607,6 +3607,7 @@ export const XPIDatabaseReconcile = { + if ( + newAddon || + oldAddon.updateDate != xpiState.mtime || ++ oldAddon.path != xpiState.path || + (aUpdateCompatibility && this.isAppBundledLocation(installLocation)) + ) { + newAddon = this.updateMetadata( +@@ -3615,8 +3616,6 @@ export const XPIDatabaseReconcile = { + xpiState, + newAddon + ); +- } else if (oldAddon.path != xpiState.path) { +- newAddon = this.updatePath(installLocation, oldAddon, xpiState); + } else if (aUpdateCompatibility || aSchemaChange) { + newAddon = this.updateCompatibility( + installLocation, |