X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fcontent%2Fbrowser.js;fp=common%2Fcontent%2Fbrowser.js;h=79d98d2df8fbe57b2b024b557a0307d349d0beef;hb=3d837eb266a3a01d424192aa4ec1a167366178c5;hp=a1b111094fd986cd1bb80763c2d9d862365fe984;hpb=d8a3bcebff36df7b128b36e0b57b715479e155a0;p=dactyl.git diff --git a/common/content/browser.js b/common/content/browser.js index a1b1110..79d98d2 100644 --- a/common/content/browser.js +++ b/common/content/browser.js @@ -66,7 +66,7 @@ var Browser = Module("browser", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), events: { DOMContentLoaded: function onDOMContentLoaded(event) { let doc = event.originalTarget; - if (doc instanceof HTMLDocument) + if (doc instanceof Ci.nsIDOMHTMLDocument) this._triggerLoadAutocmd("DOMLoad", doc); }, @@ -78,7 +78,7 @@ var Browser = Module("browser", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), if (doc instanceof Document) dactyl.initDocument(doc); - if (doc instanceof HTMLDocument) { + if (doc instanceof Ci.nsIDOMHTMLDocument) { if (doc.defaultView.frameElement) { // document is part of a frameset @@ -222,7 +222,7 @@ var Browser = Module("browser", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), if (dactyl.forceTarget in openModes) mode = openModes[dactyl.forceTarget]; - CommandExMode().open(mode + "open " + (args || "")) + CommandExMode().open(mode + "open " + (args || "")); } function decode(uri) util.losslessDecodeURI(uri) @@ -282,4 +282,4 @@ var Browser = Module("browser", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), } }); -// vim: set fdm=marker sw=4 ts=4 et: +// vim: set fdm=marker sw=4 sts=4 ts=8 et: