From 1059664ff4a3c92b2c6a4720f695e158aed215e4 Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Tue, 20 Oct 2009 13:04:15 +0000 Subject: Changed to use actual interfaces! Seems to work, tiny bug left in unit tests. git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@285 119bf307-c92d-0410-89bd-8f53e6181181 --- components/redirector.component.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'components/redirector.component.js') diff --git a/components/redirector.component.js b/components/redirector.component.js index e5f20f4..73219ad 100644 --- a/components/redirector.component.js +++ b/components/redirector.component.js @@ -8,8 +8,7 @@ const loader = Cc["@mozilla.org/moz/jssubscript-loader;1"].getService(Ci.mozIJSS var redirector = null; function Redirector() { - this.init(); - this.wrappedJSObject = this; + this._init(); } try { @@ -28,7 +27,7 @@ xpcomInfo.classDescription = "Redirector Component"; xpcomInfo.classID = Components.ID("{b7a7a54f-0581-47ff-b086-d6920cb7a3f7}"); xpcomInfo.contractID = "@einaregilsson.com/redirector;1"; xpcomInfo._xpcom_categories = [{category:'content-policy'},{category:'net-channel-event-sinks'}]; -xpcomInfo.QueryInterface = XPCOMUtils.generateQI([Ci.nsIContentPolicy, Ci.nsIChannelEventSink]); +xpcomInfo.QueryInterface = XPCOMUtils.generateQI([Ci.nsIContentPolicy, Ci.nsIChannelEventSink, Ci.rdIRedirector]); xpcomInfo._xpcom_factory = { createInstance: function(outer, iid) { if (outer) throw Cr.NS_ERROR_NO_AGGREGATION; -- cgit v1.2.3-70-g09d2