rem: return requestor.getInterface(nsIBaseWindow); 
add: rv = requestor.getInterface(nsIBaseWindow); 
context: function getBaseWindowFromWindow (win){    var ex;    try    {        var requestor = win.QueryInterface(nsIInterfaceRequestor);        var nav = requestor.getInterface(nsIWebNavigation);        var dsti = nav.QueryInterface(nsIDocShellTreeItem);        var owner = dsti.treeOwner;        requestor = owner.QueryInterface(nsIInterfaceRequestor);        return requestor.getInterface(nsIBaseWindow);    }    catch (ex)    {        //dd ("not a nsIXULWindow: " + formatException(ex));        /* ignore no-interface exception */    }    return null;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c253059afafb09ee6b27e3767bb1e487e050ba0f/venkman-utils.js/clean/extensions/venkman/resources/content/venkman-utils.js