James Newell wrote:
So I'm adding my request object to the loadgroup and removing it before
calling onStopRequest on the wrapped stream listener. Nothing different
happens. Is this implementation what you meant?
ePaediaChannel.prototype.onStartRequest = function(request, context) {
this.loadGroup.addRequest(this.QueryInterface(Components.interfaces.nsIRequest),
context);
That should be happening in asyncOpen, not in onStartRequest.
ePaediaChannel.prototype.onStopRequest = function(request, context,
statusCode) {
this.loadGroup.removeRequest(this.QueryInterface(Components.interfaces.nsIRequest),
context, Components.results.NS_ERROR_FILE_NOT_FOUND );
This part, however, looks correct.
This should be working... Do you have a debug build by any chance? Or no? If
not, is there a way I could install and test the code?
-Boris
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network