vonuyx wrote:
Thankyou very much for your help. Would you please explain how to do this in more details because I am afraid I did not understand what you really meant.
I don't recall the details, and I don't have the source in front of right now. You may want to check the exact situation in nsDocShell::GetInterface and nsGlobalWindow::GetInterface, but you should be able to QI the window to nsIInterfaceRequestor, getInterface() a nsIDocShellTreeItem object, get the root of the docshell tree from that, and getInterface() and nsIDOMWindow from that.
-Boris _______________________________________________ Mozilla-xpcom mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-xpcom
