I'm still having problems with returning a file not found error
message. Since my channel wraps another one and finishes executing as
soon as my channel calls asyncOpen on the wrapped channel, I can not
throw the error here.

I have a streamlistener wrapping the streamlistener passed to my
asyncOpen method by the browser element so that the real URI of the
channel is kept "masked". Based on what you mentioned earlier, the only
way I can return an error message is to pass the correct code to  the
onStopRequest method of the wrapped (browser's) stream listener.

In my streamlistener, the wrapped channel is returning a number of
status codes when a non-existant uri is passed, including sometimes a
NS_FILE_NOT_FOUND. I am passing these codes exactly to the wrapped
streamlistner (the browser) but this does not return a file not found
error, rather returning a blank white screen (I assume this is because
no data was passed to onDataAvailiable).

Thanks

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

Reply via email to