mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-19 18:37:58 +01:00
e10s fixes.
This commit is contained in:
5
common/bootstrap.js
vendored
5
common/bootstrap.js
vendored
@@ -263,6 +263,7 @@ function init() {
|
||||
else {
|
||||
bootstrap = Cu.Sandbox(Cc["@mozilla.org/systemprincipal;1"].createInstance(),
|
||||
{ sandboxName: BOOTSTRAP,
|
||||
addonId: addon.id,
|
||||
metadata: { addonID: addon.id } });
|
||||
Services.scriptloader.loadSubScript(BOOTSTRAP, bootstrap);
|
||||
}
|
||||
@@ -407,8 +408,8 @@ FactoryProxy.prototype = {
|
||||
return this.module;
|
||||
},
|
||||
createInstance: function (iids) {
|
||||
return let (factory = this.module.NSGetFactory(this.classID))
|
||||
factory.createInstance.apply(factory, arguments);
|
||||
let factory = this.module.NSGetFactory(this.classID);
|
||||
return factory.createInstance.apply(factory, arguments);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user