diff options
author | Kris Maglione <maglione.k@gmail.com> | 2010-10-03 22:15:49 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2010-10-03 22:15:49 -0400 |
commit | 6d472abb18ee2e6fb5c06b2ff5ecfc2a2f2a18c4 (patch) | |
tree | 64ccf45ab10f4b48a49044975e9bf807208e876b /common/components | |
parent | 106b9163c2bc7c5ba0950b094fbba0db4b4e7681 (diff) | |
download | pentadactyl-6d472abb18ee2e6fb5c06b2ff5ecfc2a2f2a18c4.tar.gz |
Cut down on some error console noise when generating XPCOM stubs.
Diffstat (limited to 'common/components')
-rw-r--r-- | common/components/protocols.js | 10 |
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) |