rem: var domWindow = windowManagerInterface.ConvertISupportsToDOMWindow( windowToClose ); 
add: var domWindow = windowManagerInterface.convertISupportsToDOMWindow( windowToClose ); 
context: function goQuitApplication(){	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  windowToClose = enumerator.GetNext();		var domWindow = windowManagerInterface.ConvertISupportsToDOMWindow( windowToClose );		domWindow.focus();		if ( domWindow.tryToClose == null )		{			// dump(" window.close \n");			domWindow.close();		}		else		{			// dump(" try to close \n" );			if ( !domWindow.tryToClose() )				return false;		}	};		// call appshell exit	var appShell = Components.classes['component://netscape/appshell/appShellService'].getService();	appShell = appShell.QueryInterface( Components.interfaces.nsIAppShellService );	appShell.Quit();	return true;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/4ac33fc442d1888aa11cf3005b91aa3c9c956164/globalOverlay.js/clean/xpfe/global/resources/content/globalOverlay.js