rem: var windowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService(); 
add: var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); 
context: function FindEditorWithInsertCharDialog(){  // Find window with an InsertCharsWindow and switch association to this one  var windowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/58ad7ad612cf759624c52f8d3473225eb3ce4026/editor.js/clean/editor/ui/composer/content/editor.js