Hello Christian et. al.,

The problem is when listening to the "ondomwindowopened" I can receive an nsIDOMWindow pointer everytime when I open a new (Firefox) browser window. It seems to me that this is the DOMWindow of the chrome window.

Now, in the OnStateChange method of nsIWebProgressListener I can obtain another DOMWindow of the HTML document displayed in that browser window.

The question is how to check whether this second DOMWindow is related to the first one, assuming that at that time there are more than one browser window opened.

Thankyou in advance for any suggestion !
Vonuyx



Christian Biesinger wrote:

vonuyx wrote:

I just wonder how I can get the nsIDOMWindow of the chrome window which contains this webpage (the top chrome window, I guess).


Boris already explained it in http://groups-beta.google.com/group/netscape.public.mozilla.xpcom/msg/7b7f33bbfc6fbada ...

Maybe you should tell us which part of that you're having problems with?

_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to