Michael Vincent van Rantwijk wrote:
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

Details?  What sort of errors?

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

What makes you think the contentDocument is guaranteed to be initialized before the document is fully parsed? At the moment this happens to be true, but I don't believe this is guaranteed anywhere.

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

Reply via email to