rem: if (win.editorShell.checkOpenWindowForURLMatch(url, win)) 
add: if (CheckOpenWindowForURIMatch(uri, win)) 
context: function editPage(url, launchWindow, delay){  var focusedWindow = document.commandDispatcher.focusedWindow;  if (isDocumentFrame(focusedWindow))    url = focusedWindow.location.href;  // User may not have supplied a window  if (!launchWindow)  {    if (window)    {      launchWindow = window;    }    else    {      dump("No window to launch an editor from!\n");      return;    }  }  // if the current window is a browser window, then extract the current charset menu setting from the current   // document and use it to initialize the new composer window...  var wintype = document.firstChild.getAttribute('windowtype');  var charsetArg;  if (launchWindow && (wintype == "navigator:browser") && launchWindow._content.document)    charsetArg = "charset=" + launchWindow._content.document.characterSet;  try {    var windowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService();    var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator);    var enumerator = windowManagerInterface.getEnumerator( "composer:html" );    var emptyWindow;    while ( enumerator.hasMoreElements() )    {      var win = windowManagerInterface.convertISupportsToDOMWindow( enumerator.getNext() );      if ( win && win.editorShell)      {        if (win.editorShell.checkOpenWindowForURLMatch(url, win))        {          // We found an editor with our url          win.focus();          return;        }        else if (!emptyWindow && win.PageIsEmptyAndUntouched())        {          emptyWindow = win;        }      }    }    if (emptyWindow)    {      // we have an empty window we can use      if (emptyWindow.IsInHTMLSourceMode())        emptyWindow.FinishHTMLSource();      emptyWindow.editorShell.LoadUrl(url);      emptyWindow.focus();      emptyWindow.SetSaveAndPublishUI(url);      return;    }    // Create new Composer window    if (delay)    {      dump("delaying\n");      launchWindow.delayedOpenWindow("chrome://editor/content", "chrome,all,dialog=no", url);    }    else      launchWindow.openDialog("chrome://editor/content", "_blank", "chrome,all,dialog=no", url, charsetArg);  } catch(e) {}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0f5f8b3e8680f093b1d0ce07449df416eb08afb0/editorApplicationOverlay.js/buggy/editor/ui/composer/content/editorApplicationOverlay.js