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,