Boris Zbarsky wrote:
Michael Vincent van Rantwijk wrote:
Lets assume that the correct content type is specified/send by the server, so when exactly will http://lxr.mozilla.org/seamonkey/source/netwerk/base/public/nsIChannel.idl#140
be available?

It's "available" at any time. If you're asking at what point it could depend on what the server returned, that's after OnStartRequest or after open() returns.

I hoped that, but that's not the case because it throws JS errors on the JS console if you try to read it in method onStateChange in tabbrowser.xml

Also, at what point is the document initialized i.e. when are things like browser.contentDocument set?

Undefined.

That's what I was afraid of ;)

Is there a way to cancel XML downloads *after* browser.contentDocument but *before* the document is loaded/parsed?

Meaning what?

I want to cancel the document load for certain XML documents *after* browser.contentDocument is initialized, and I can do that already by using channel.cancel(), but now I have to find a way to get rid of that yellow parser error page (another no elements error)

Michael
_______________________________________________
Mozilla-netlib mailing list
Mozilla-netlib@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to