add:   if (!navigatorWindow && aOpenFlag) { var navigatorChromeURL = search_getBrowserURL(); navigatorWindow = openDialog(navigatorChromeURL, "_blank", "chrome,all,dialog=no"); } return navigatorWindow; 
context: function getNavigatorWindow(aOpenFlag){  const WM_CONTRACTID = "@mozilla.org/rdf/datasource;1?name=window-mediator";  var wm;  if (top.document) {    var possibleNavigator = top.document.getElementById("main-window");    if (possibleNavigator &&         possibleNavigator.getAttribute("windowtype") == "navigator:browser")      return top;    else {      wm = nsJSComponentManager.getService(WM_CONTRACTID, "nsIWindowMediator");      var mostRecentNavigator = wm.getMostRecentWindow("navigator:browser");      return mostRecentNavigator ? mostRecentNavigator : aOpenFlag ? openNewNavigator() : null;    }  }  else {    wm = nsJSComponentManager.getService(WM_CONTRACTID, "nsIWindowMediator");    var mostRecentNavigator = wm.getMostRecentWindow("navigator:browser");    return mostRecentNavigator ? mostRecentNavigator : aOpenFlag ? openNewNavigator() : null;  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/80bc9df5e6e01fb476a458dc4eefcdc6a06519ad/search-panel.js/buggy/xpfe/components/search/resources/search-panel.js