blob: 35e6bbfb408547c59209505a490c0cbd1472c7c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// keep this comment
try {
// monkey-patching to disable signing and force-enable legacy extensions:
let Xdb = Cu.import('resource://gre/modules/addons/XPIDatabase.jsm', {});
Xdb.XPIDatabase['SIGNED_TYPES'].clear();
Xdb.AddonSettings = {
"REQUIRE_SIGNING": false,
"LANGPACKS_REQUIRE_SIGNING": false,
"ALLOW_LEGACY_EXTENSIONS": true,
};
Cu.import('chrome://legacy/content/boot.jsm'); // engage the bootstrap loader
} catch(ex) {}
|