summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README5
-rw-r--r--config.js9
-rw-r--r--legacy/boot.jsm7
3 files changed, 9 insertions, 12 deletions
diff --git a/README b/README
index 645514d..2938517 100644
--- a/README
+++ b/README
@@ -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 ==
diff --git a/config.js b/config.js
index 35e6bbf..e568b52 100644
--- a/config.js
+++ b/config.js
@@ -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);
-}