rem: var window = windowManagerInterface.ConvertISupportsToDOMWindow( enumerator.GetNext() ); 
add: var window = windowManagerInterface.convertISupportsToDOMWindow( enumerator.GetNext() ); 
context: function FindAndSelectEditorWindowWithURL(urlToMatch){  // returns true if found; false if an error or not found    var windowManager = Components.classes["component://netscape/rdf/datasource?name=window-mediator"].getService();  if ( !windowManager )    return false;    var windowManagerInterface = windowManager.QueryInterface(Components.interfaces.nsIWindowMediator);  if ( !windowManagerInterface )    return false;  var enumerator = windowManagerInterface.GetEnumerator( "composer:html" );  if ( !enumerator )    return false;  while ( enumerator.HasMoreElements() )  {    var window = windowManagerInterface.ConvertISupportsToDOMWindow( enumerator.GetNext() );    if ( window )    {      var didFindWindow = editorShell.checkOpenWindowForURLMatch(urlToMatch, window)	    if (didFindWindow)	    {	      window.focus();	      return true;	    }	  }  }  // not found  return false;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/6827998657fb61451e548ed23dde1469c82398b0/EditorCommands.js/buggy/editor/ui/composer/content/EditorCommands.js