rem: var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); var topWindowOfType = windowManagerInterface.getMostRecentWindow( "navigator:browser" );  if (topWindowOfType) { return topWindowOfType; } return null; 
add: var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'] .getService(Components.interfaces.nsIWindowMediator); return windowManager.getMostRecentWindow("navigator:browser"); 
context: function getTopWin(){    var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService();    var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator);    var topWindowOfType = windowManagerInterface.getMostRecentWindow( "navigator:browser" );    if (topWindowOfType) {        return topWindowOfType;    }    return null;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/8d230a95701fc52f2ecafe81177de1a21d8c69a2/utilityOverlay.js/buggy/browser/base/content/utilityOverlay.js