summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgirst <girst@users.noreply.github.com>2023-07-01 12:08:57 +0200
committergirst <girst@users.noreply.github.com>2023-07-02 11:16:26 +0200
commit79ef33ee7354f59451c80cedd3eac63bc2e36be4 (patch)
treeb206683232f5d340eb1c3143d1b343bd1bc77377
parentc2ebaa3a942180370e9318661ceacf4bae55560c (diff)
downloadlegacywolf-79ef33ee7354f59451c80cedd3eac63bc2e36be4.tar.gz
legacywolf-79ef33ee7354f59451c80cedd3eac63bc2e36be4.zip
Make compatible with Firefox 116
regressed-by: https://bugzil.la/920187
-rw-r--r--README2
-rw-r--r--config.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/README b/README
index a5dd03e..b7eace4 100644
--- a/README
+++ b/README
@@ -22,4 +22,4 @@ trademark; you are not granted any right to distribute modified binary versions
of the software containing the official branding.
(C) 2018-2019 Mozilla, MPL v2
-(C) 2019-2022 //gir.st/, MPL v2
+(C) 2019-2023 //gir.st/, MPL v2
diff --git a/config.js b/config.js
index 0761851..f2fb2a5 100644
--- a/config.js
+++ b/config.js
@@ -4,9 +4,9 @@ try {
XPIDatabase.isDisabledLegacy = (addon) => false;
XPIDatabase.mustSign = (aType) => false;
- const {FileUtils} = Cu.import('resource://gre/modules/FileUtils.jsm');
- Components.manager.QueryInterface(Ci.nsIComponentRegistrar)
- .autoRegister(FileUtils.getFile('GreD', ['legacy.manifest']));
+ let manifest = Services.dirsvc.get('GreD', Ci.nsIFile);
+ manifest.append('legacy.manifest');
+ Components.manager.QueryInterface(Ci.nsIComponentRegistrar).autoRegister(manifest);
const {AddonManager} = Cu.import('resource://gre/modules/AddonManager.jsm');
const {BootstrapLoader} = Cu.import('resource://legacy/BootstrapLoader.jsm');