1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-10 20:55:52 +01:00

Support Firefox 45 (without e10s).

This commit is contained in:
Kris Maglione
2015-12-19 20:09:04 -08:00
parent e3c3748511
commit bc9eb79fb3
41 changed files with 614 additions and 421 deletions

16
common/bootstrap.js vendored
View File

@@ -56,7 +56,7 @@ function httpGet(uri) {
let moduleName;
let initialized = false;
let addon = null;
var addon = null;
let addonData = null;
let basePath = null;
let bootstrap;
@@ -199,23 +199,27 @@ let JSMLoader = {
manager.unregisterFactory(factory.classID, factory);
},
Factory: function Factory(class_) ({
__proto__: class_.prototype,
Factory(class_) {
let res = Object.create(class_.prototype);
createInstance: function (outer, iid) {
res.createInstance = function (outer, iid) {
try {
if (outer != null)
throw Cr.NS_ERROR_NO_AGGREGATION;
if (!class_.instance)
class_.instance = new class_();
return class_.instance.QueryInterface(iid);
}
catch (e) {
Cu.reportError(e);
throw e;
}
}
}),
};
return res;
},
registerFactory: function registerFactory(factory) {
manager.registerFactory(factory.classID,