Re: Going from an nsIXULWindow to a <window>
Neil <[email protected]> Mon, 09 Jun 2003 11:21:23 +0100
| Newsgroups | gmane.comp.mozilla.devel.xpfe,gmane.comp.mozilla.devel.xpcom |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
David Ascher wrote: > I've noticed that Venkman has code to go from a window object to its > nsIXULWindow > (http://lxr.mozilla.org/seamonkey/source/extensions/venkman/resources/content/venkman-utils.js#542), > but haven't found the reverse. > > Any ideas? var docshell = xulwin.docShell; var requestor = docshell.QueryInterface(nsIInterfaceRequestor); var win = requestor.getInterface(nsIDOMWindow); -- Warning: May contain traces of nuts.