From 6d472abb18ee2e6fb5c06b2ff5ecfc2a2f2a18c4 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sun, 3 Oct 2010 22:15:49 -0400 Subject: [PATCH] Cut down on some error console noise when generating XPCOM stubs. --- common/components/protocols.js | 10 +++++++++- common/content/configbase.js | 1 - common/content/dactyl.xul | 10 +++++----- common/content/events.js | 2 +- common/modules/base.jsm | 5 ++++- common/skin/dactyl.css | 5 +++++ 6 files changed, 24 insertions(+), 9 deletions(-) diff --git a/common/components/protocols.js b/common/components/protocols.js index a4488fab..f5e3f627 100644 --- a/common/components/protocols.js +++ b/common/components/protocols.js @@ -195,7 +195,15 @@ Shim.prototype = { contractID: "@dactyl.googlecode.com/base/xpc-interface-shim", classID: Components.ID("{f4506a17-5b4d-4cd9-92d4-2eb4630dc388}"), classDescription: "XPCOM empty interface shim", - QueryInterface: function () this + QueryInterface: function (iid) { + if (iid.equals(Ci.nsISecurityCheckedComponent)) + throw Components.results.NS_ERROR_NO_INTERFACE; + return this + }, + getHelperForLanguage: function () null, + getInterfaces: function (count) { + count.value = 0; + } }; if (XPCOMUtils.generateNSGetFactory) diff --git a/common/content/configbase.js b/common/content/configbase.js index f8d4ea34..8edb176a 100644 --- a/common/content/configbase.js +++ b/common/content/configbase.js @@ -179,7 +179,6 @@ const ConfigBase = Class(ModuleBase, { StatusWarningMsg color: red !important; background: inherit !important; !CmdLine;>* font-family: monospace !important; padding: 1px !important; - // !StatusCmdLine>* color: white; background: black; font-weight: normal; CmdPrompt;.dactyl-commandline-prompt CmdInput;.dactyl-commandline-command CmdOutput white-space: pre; diff --git a/common/content/dactyl.xul b/common/content/dactyl.xul index 1e95af9a..9ef44375 100644 --- a/common/content/dactyl.xul +++ b/common/content/dactyl.xul @@ -77,7 +77,7 @@ - +