HttpFox breaks notificationCallbacks

54 views
Skip to first unread message

Jeferson Hultmann

unread,
Jul 23, 2009, 12:19:11 AM7/23/09
to htt...@googlegroups.com
Hi Martin and all,

The following snippet throws an exception when HttpFox is active
(via start button).


// http-on-examine-response
observe: function(aSubject, aTopic, aData) {
var w = aSubject
.QueryInterface(Ci.nsIHttpChannel)
.notificationCallbacks
.getInterface(Ci.nsIWebProgress);
}

[Exception... "Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIInterfaceRequestor.getInterface]"
nsresult: "0x80004005 (NS_ERROR_FAILURE)"

or

[Exception... "'Component does not have requested interface'
when calling method: [nsIInterfaceRequestor::getInterface]"
nsresult: "0x80004002 (NS_NOINTERFACE)"


I think it happens because HttpFoxRequestEventSink.init
overrides notificationCallbacks...


--

Thanks,

Reply all
Reply to author
Forward
0 new messages