rem: if (tempWindow != window && "InsertCharWindow" in tempWindow && tempWindow.InsertCharWindow) { return tempWindow; 
add: if (tempWindow != window && "InsertCharWindow" in tempWindow && tempWindow.InsertCharWindow) { return tempWindow; } 
context: function FindEditorWithInsertCharDialog(){  // Find window with an InsertCharsWindow and switch association to this one  var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService();  var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator);  var enumerator = windowManagerInterface.getEnumerator( null );  while ( enumerator.hasMoreElements()  )  {    var  tempWindow = enumerator.getNext();    if (tempWindow != window && "InsertCharWindow" in tempWindow &&        tempWindow.InsertCharWindow)    {      return tempWindow;    }  }  return null;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/160100a09b4b930d5b308fda04a1e21843697414/editor.js/buggy/editor/ui/composer/content/editor.js