summaryrefslogtreecommitdiff
path: root/config.js
blob: f2fb2a554b19e4132f1708bdacbe566cfc5788e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// keep this comment
try {
  let {XPIDatabase} = Cu.import('resource://gre/modules/addons/XPIDatabase.jsm', {});
  XPIDatabase.isDisabledLegacy = (addon) => false;
  XPIDatabase.mustSign = (aType) => false;

  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');
  AddonManager.addExternalExtensionLoader(BootstrapLoader);
} catch(ex) {
  Components.utils.reportError(ex.message);
}