Seeing as I am wrapping a channel, my asyncOpen stops executing as soon
as I call the same function on another channel and hence I have no way
of throwing a file not found error in asyncOpen when the retrieval of
the url fails. My wrapper stream object is recieving file not found as
its status code (for urls that really dont exist) in onStopRequest,
however, no error page is being displayed even though I am passing the
raw status code to the original listener.
ePaediaChannel.prototype.asyncOpen = function(objStreamListener,
objContext) {
...
wrappedChannel.asyncOpen(this, objContext)
...
}
ePaediaChannel.prototype.onStopRequest = function(request, context,
statusCode) {
this._wrappedStreamListener.onStopRequest(this, context, statusCode);
}
Thanks again
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network