mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 00:27: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 {
|
else {
|
||||||
bootstrap = Cu.Sandbox(Cc["@mozilla.org/systemprincipal;1"].createInstance(),
|
bootstrap = Cu.Sandbox(Cc["@mozilla.org/systemprincipal;1"].createInstance(),
|
||||||
{ sandboxName: BOOTSTRAP,
|
{ sandboxName: BOOTSTRAP,
|
||||||
|
addonId: addon.id,
|
||||||
metadata: { addonID: addon.id } });
|
metadata: { addonID: addon.id } });
|
||||||
Services.scriptloader.loadSubScript(BOOTSTRAP, bootstrap);
|
Services.scriptloader.loadSubScript(BOOTSTRAP, bootstrap);
|
||||||
}
|
}
|
||||||
@@ -407,8 +408,8 @@ FactoryProxy.prototype = {
|
|||||||
return this.module;
|
return this.module;
|
||||||
},
|
},
|
||||||
createInstance: function (iids) {
|
createInstance: function (iids) {
|
||||||
return let (factory = this.module.NSGetFactory(this.classID))
|
let factory = this.module.NSGetFactory(this.classID);
|
||||||
factory.createInstance.apply(factory, arguments);
|
return factory.createInstance.apply(factory, arguments);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1406,9 +1406,9 @@ var Commands = Module("commands", {
|
|||||||
|
|
||||||
// Fix me.
|
// Fix me.
|
||||||
if (isString(sep))
|
if (isString(sep))
|
||||||
sep = RegExp(sep);
|
sep = RegExp(sep || "(?:)");
|
||||||
sep = sep != null ? sep : /\s/;
|
sep = sep != null ? sep : /\s/;
|
||||||
let re1 = RegExp("^" + (sep.source === "" ? "(?!)" : sep.source));
|
let re1 = RegExp("^" + (sep.source === "(?:)" ? "(?!)" : sep.source));
|
||||||
let re2 = RegExp(/^()((?:[^\\S"']|\\.)+)((?:\\$)?)/.source.replace("S", sep.source));
|
let re2 = RegExp(/^()((?:[^\\S"']|\\.)+)((?:\\$)?)/.source.replace("S", sep.source));
|
||||||
|
|
||||||
while (str.length && !re1.test(str)) {
|
while (str.length && !re1.test(str)) {
|
||||||
|
|||||||
@@ -798,7 +798,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
|||||||
if (params.user != null || params.pass != null)
|
if (params.user != null || params.pass != null)
|
||||||
args.push(params.user);
|
args.push(params.user);
|
||||||
if (params.pass != null)
|
if (params.pass != null)
|
||||||
args.push(prams.pass);
|
args.push(params.pass);
|
||||||
|
|
||||||
apply(xmlhttp, "open", args);
|
apply(xmlhttp, "open", args);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user