diff --git a/common/bootstrap.js b/common/bootstrap.js index 7ea5a905..e0564e1a 100755 --- a/common/bootstrap.js +++ b/common/bootstrap.js @@ -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(), diff --git a/common/content/about.xul b/common/content/about.xul index 3dbfdd5d..c2aeb516 100644 --- a/common/content/about.xul +++ b/common/content/about.xul @@ -1,7 +1,7 @@ - + diff --git a/common/content/blank.xul b/common/content/blank.xul new file mode 100644 index 00000000..be572a19 --- /dev/null +++ b/common/content/blank.xul @@ -0,0 +1,10 @@ + + + + + + + Hello, there. + + + diff --git a/pentadactyl/install.rdf b/pentadactyl/install.rdf index ed7cf477..d55b72ea 100644 --- a/pentadactyl/install.rdf +++ b/pentadactyl/install.rdf @@ -31,7 +31,7 @@