rem: launchWindow = window; 
add: { if (window) { launchWindow = window; } else { dump("No window to launch an editor from!\n"); return; } } 
context: function editPage(url, launchWindow, delay){  // User may not have supplied a window  if (!launchWindow)    launchWindow = window;  var windowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService();  if (!windowManager) return;  var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator);  if ( !windowManagerInterface ) return;  var enumerator = windowManagerInterface.getEnumerator( "composer:html" );  if ( !enumerator ) return;  while ( enumerator.hasMoreElements() )  {    var window = windowManagerInterface.convertISupportsToDOMWindow( enumerator.getNext() );    if ( window && window.editorShell)    {      if (window.editorShell.checkOpenWindowForURLMatch(url, window))      {        // We found an editor with our url        window.focus();        return;      }    }  }    // Create new Composer window  if (delay)    launchWindow.delayedOpenWindow("chrome://editor/content", "chrome,all,dialog=no", url);  else    launchWindow.openDialog("chrome://editor/content", "_blank", "chrome,all,dialog=no", url);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/7142710838294e48f1916cce9ae0edc0928d3d17/utilityOverlay.js/buggy/suite/common/utilityOverlay.js