diff --git a/common/modules/buffer.jsm b/common/modules/buffer.jsm index 4e7dfc5b..a24ed855 100644 --- a/common/modules/buffer.jsm +++ b/common/modules/buffer.jsm @@ -457,10 +457,11 @@ var Buffer = Module("Buffer", { let { dactyl } = this.modules; let ctrlKey = false, shiftKey = false; + let button = 0; switch (dactyl.forceTarget || where) { case dactyl.NEW_TAB: case dactyl.NEW_BACKGROUND_TAB: - ctrlKey = true; + button = 1; shiftKey = dactyl.forceBackground != null ? dactyl.forceBackground : where != dactyl.NEW_BACKGROUND_TAB; break; @@ -476,7 +477,7 @@ var Buffer = Module("Buffer", { prefs.withContext(function () { prefs.set("browser.tabs.loadInBackground", true); let params = { - screenX: offsetX, screenY: offsetY, + button: button, screenX: offsetX, screenY: offsetY, ctrlKey: ctrlKey, shiftKey: shiftKey, metaKey: ctrlKey }; diff --git a/common/modules/services.jsm b/common/modules/services.jsm index c9992a9b..aa8d9ad5 100644 --- a/common/modules/services.jsm +++ b/common/modules/services.jsm @@ -105,7 +105,7 @@ var Services = Module("Services", { this.addClass("Transferable", "@mozilla.org/widget/transferable;1", "nsITransferable"); this.addClass("Timer", "@mozilla.org/timer;1", "nsITimer", "initWithCallback"); this.addClass("URL", "@mozilla.org/network/standard-url;1", ["nsIStandardURL", "nsIURL"], "init"); - this.addClass("Xmlhttp", "@mozilla.org/xmlextras/xmlhttprequest;1", "nsIXMLHttpRequest", "open"); + this.addClass("Xmlhttp", "@mozilla.org/xmlextras/xmlhttprequest;1", [], "open"); this.addClass("XPathEvaluator", "@mozilla.org/dom/xpath-evaluator;1", "nsIDOMXPathEvaluator"); this.addClass("XMLDocument", "@mozilla.org/xml/xml-document;1", ["nsIDOMXMLDocument", "nsIDOMNodeSelector"]); this.addClass("ZipReader", "@mozilla.org/libjar/zip-reader;1", "nsIZipReader", "open", false);