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.
