James Newell wrote:
Neither of these return a error in the browser element, rather
display an exception in the javascript console. In the documentation
I could not find asyncOpen, the method you were refering to throw
from, rather it was on the nsIChannel not nsIProtocolHandler. If I
implement nsIChannel and throw will this return the standard file not
found error? How do the other protocols return the error box or page?
Other protocols implement nsIChannel. Doing that should fix your problems.
Your implementation of nsIChannel could wrap another channel and
delegate most work to it, although you need to make sure that the
channel you pass to the stream listener's methods is your channel.
-christian
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom