1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 15:32:25 +01:00

Dequote preference names in :set!

This commit is contained in:
Kris Maglione
2011-09-07 07:25:05 -04:00
parent 34e9e55489
commit 0064665749
4 changed files with 15 additions and 12 deletions

14
common/bootstrap.js vendored
View File

@@ -238,15 +238,13 @@ function init() {
JSMLoader.load("base.jsm", global);
if (!(BOOTSTRAP_CONTRACT in Cc)) {
let factory = {
classID: Components.ID("{f541c8b0-fe26-4621-a30b-e77d21721fb5}"),
contractID: BOOTSTRAP_CONTRACT,
QueryInterface: XPCOMUtils.generateQI([Ci.nsIFactory]),
// Use Sandbox to prevent closures over this scope
let sandbox = Cu.Sandbox(Cc["@mozilla.org/systemprincipal;1"].getService());
let factory = Cu.evalInSandbox("({ createInstance: function () this })", sandbox);
// Use Sandbox to prevent closures over this scope
createInstance: Cu.evalInSandbox("(function () this)",
Cu.Sandbox(Cc["@mozilla.org/systemprincipal;1"].getService()))
};
factory.classID = Components.ID("{f541c8b0-fe26-4621-a30b-e77d21721fb5}");
factory.contractID = BOOTSTRAP_CONTRACT;
factory.QueryInterface = XPCOMUtils.generateQI([Ci.nsIFactory]);
factory.wrappedJSObject = factory;
manager.registerFactory(factory.classID, String(factory.classID),