Ok guys sorry, I didn't realise that my posts had been moved to this
group.

Here's a little more information.

> Boris Zbarsky
>> What sort of channel?

The channel I am wrapping is a jar channel.

>> What is the status code in that case?

The status code I get in onStopRequest when attempting to load a
document that does not exist is: 2147500037 - NS_ERROR_FAILURE
according to "http://twpol.dyndns.org/mozilla/misc/nserror?0x804b000a";

> Christian Biesinger
>> It's somewhat hard to answer your question without more information, or
>> seeing the code. Do you add/remove your channel to/from a loadgroup? Do you 
>> set a
>> load group on the wrapped channel?

I can post the code if you wish. No I'm not adding my channel or the
wrapped one to the load group. I don't understand how this works. Is
there any documentation/examples other than the interface reference.

>> What does GetStatus on your channel return?

I'm using javascript to create my protocol so by GetStatus I take it
you mean the status property. It is set to "Components.results.NS_OK".

Boris said in an earlier reply that passing NS_ERROR_FILE_NOT_FOUND to
onStopRequest would display the default error message so I havent been
setting the status property.

If I set the status property to the status of the jar channel in before
calling the wrapped listener's onStartRequest it appears that no page
loads at all, staying at the previous page instead of the regular
behaviour of showing an empty page.

> Jeff Walden
>> Stupid question: do you mean NS_ERROR_FILE_NOT_FOUND, or is this perhaps an
>> unfortunate shortening of NS_ERROR_FILE_TARGET_DOES_NOT_EXIST?  Only the
>> former will cause an error page to be displayed.

Yes sorry I meant NS_ERROR_FILE_NOT_FOUND, I was writing off the top of
my head. By passing both of these as the status code to the wrapped
listener instead of the status code returned by the jar channel has no
outcome.


Also I have noticed a few other quirks such as I get no status or
progress callbacks from nsIWebProgress for my channel.

Apologies for taking so long to realise posts were being directed here
and hence the double posts.

Thanks for all your help.
James

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

Reply via email to