1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 17:17:59 +01:00

Fix brokenness.

This commit is contained in:
Kris Maglione
2015-02-22 20:44:29 -08:00
parent b75b22796a
commit 0c84d67dca
4 changed files with 21 additions and 3 deletions

10
common/bootstrap.js vendored
View File

@@ -63,6 +63,8 @@ let components = {};
let getURI = null;
let JSMLoader = {
DEBUG_HANGS: false,
SANDBOX: Cu.nukeSandbox,
get addon() addon,
@@ -250,7 +252,13 @@ function init() {
JSMLoader.config = manifest;
bootstrap_jsm = module(BOOTSTRAP);
if (!JSMLoader.SANDBOX)
if (JSMLoader.DEBUG_HANGS) {
bootstrap = Services.ww.openWindow(
null, "chrome://dactyl/content/blank.xul",
"dactyl-parent", "chrome,dialog,titlebar", null);
Services.scriptloader.loadSubScript(BOOTSTRAP, bootstrap);
}
else if (!JSMLoader.SANDBOX)
bootstrap = bootstrap_jsm;
else {
bootstrap = Cu.Sandbox(Cc["@mozilla.org/systemprincipal;1"].createInstance(),