1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 21:48:00 +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(),

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="resource://dactyl-local-skin/about.css" type="text/css"?>
<!DOCTYPE overlay SYSTEM "dactyl://content/dtd">
<!DOCTYPE page SYSTEM "dactyl://content/dtd">
<page id="about-&dactyl.name;" orient="vertical" title="About &dactyl.appName;"
xmlns="&xmlns.xul;" xmlns:html="&xmlns.html;">

10
common/content/blank.xul Normal file
View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE window>
<?xml-stylesheet href="chrome://global/skin/"?>
<window id="dactyl-blank-window" title="Dactyl">
<description>Hello, there.</description>
</window>
<!-- vim: set sw=2 sts=2 et: -->

View File

@@ -31,7 +31,7 @@
<em:targetApplication>
<Description
em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
em:minVersion="34.0"
em:minVersion="31.0"
em:maxVersion="39.*"/>
</em:targetApplication>
</Description>