Yvan Altmann wrote:
I'm currently embedding Gecko and I would like to handle loading from a stream and setting the currently shown document as two distinct tasks.
Unfortunately, setting up a document in a window is rather nasty at the moment... A lot of little connections have to be made; sort of like a heart transplant. :(
> * share a nsIDOMDocument between Gecko widgets
One issue here is that the Window object in JavaScript is associated with an actual window/frame, yet the document needs to know about it...
While we theoretically support multiple presentations per document, in reality only one of them can be "dynamic" (has JS running, executes events, etc) at the moment...
* cache the nsIDOMDocument instead of reparsing it each time
This is something that would become possible if we made document hookup simpler (and something we should be working on, imo).
In any case, the short answer is "can't do it yet".
-Boris _______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
