From 79ef33ee7354f59451c80cedd3eac63bc2e36be4 Mon Sep 17 00:00:00 2001 From: girst Date: Sat, 1 Jul 2023 12:08:57 +0200 Subject: Make compatible with Firefox 116 regressed-by: https://bugzil.la/920187 --- config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config.js') 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'); -- cgit v1.2.3