summaryrefslogtreecommitdiff
path: root/common/components/protocols.js
diff options
context:
space:
mode:
Diffstat (limited to 'common/components/protocols.js')
-rw-r--r--common/components/protocols.js10
1 files changed, 9 insertions, 1 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)