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);
        this._wrappedStreamListener.onStartRequest(this, context);
}

...

ePaediaChannel.prototype.onStopRequest = function(request, context,
statusCode) {
        
this.loadGroup.removeRequest(this.QueryInterface(Components.interfaces.nsIRequest),
context, Components.results.NS_ERROR_FILE_NOT_FOUND );
        this._wrappedStreamListener.onStopRequest(this, context, statusCode);
}

Thanks,
James

_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to