Thank you for your answer. That's bad for what I had in mind. Do you think I can easily emulate sharing by load several instances of the same page (one for each window) and then listen to the appropriate events ? (I have not looked at the event model in Mozilla yet).
Thanks, YA Boris Zbarsky wrote: > > > 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
