rem: var windowManager = Components.classes['component: 
add: var windowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService(); 
context: function FindEditorWithInsertCharDialog(){  // Find window with an InsertCharsWindow and switch association to this one	var windowManager = Components.classes['component://netscape/rdf/datasource?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 && tempWindow.InsertCharWindow)		{      return tempWindow;		}	}  return null;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0257791053c2b38e1dfaf2ee11afae973e82e394/editor.js/clean/editor/ui/composer/content/editor.js