diff options
-rw-r--r-- | README | 5 | ||||
-rw-r--r-- | config.js | 9 | ||||
-rw-r--r-- | legacy/boot.jsm | 7 |
3 files changed, 9 insertions, 12 deletions
@@ -4,14 +4,13 @@ Monkeypatching Firefox Quantum to run VimFx == Installation == 0. Install/upgrade Firefox from your distribution's repositories -1. As root, issue `make install` +1. As root, issue `make install` (or manually untar into /usr/lib{,64}/firefox) 2. Install VimFx from https://github.com/akhodakivskiy/VimFx/releases == Notes == - * boot.jsm was lifted from https://github.com/xiaoxiaoflood/firefox-scripts.git * BootstrapLoader.jsm, RDFDataSource.jsm, RDFManifestConverter.jsm from their last commit in comm-central (8a37a90aab4ec643fce1e1ab33984613ce0b492d) - * config.js: own work + * config.js: own work (compare mozilla-central 061b97e02ede) == Disclaimer & License == @@ -9,5 +9,10 @@ try { "ALLOW_LEGACY_EXTENSIONS": true, }; - Cu.import('chrome://legacy/content/boot.jsm'); // engage the bootstrap loader -} catch(ex) {} + // engage the bootstrap loader: + const {AddonManager} = Cu.import('resource://gre/modules/AddonManager.jsm'); + const {BootstrapLoader} = Cu.import('chrome://legacy/content/BootstrapLoader.jsm'); + AddonManager.addExternalExtensionLoader(BootstrapLoader); +} catch(ex) { + Components.utils.reportError(ex.message); +} diff --git a/legacy/boot.jsm b/legacy/boot.jsm deleted file mode 100644 index f1cae49..0000000 --- a/legacy/boot.jsm +++ /dev/null @@ -1,7 +0,0 @@ -let EXPORTED_SYMBOLS = [];
-
-const {AddonManager} = ChromeUtils.import('resource://gre/modules/AddonManager.jsm');
-if (AddonManager.addExternalExtensionLoader) {
- const {BootstrapLoader} = ChromeUtils.import('chrome://legacy/content/BootstrapLoader.jsm');
- AddonManager.addExternalExtensionLoader(BootstrapLoader);
-}
|