summaryrefslogtreecommitdiff
path: root/config.js
blob: 07618512e82106ac1c38e168d5965b691f3e11ae (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;

  const {FileUtils} = Cu.import('resource://gre/modules/FileUtils.jsm');
  Components.manager.QueryInterface(Ci.nsIComponentRegistrar)
    .autoRegister(FileUtils.getFile('GreD', ['legacy.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);
}