rem: if (!("tryToClose" in domWindow)) 
add: if (!("tryToClose" in domWindow) || domWindow.tryToClose()) 
context: function goQuitApplication(){  var ObserverService = Components.classes["@mozilla.org/observer-service;1"].getService();  ObserverService = ObserverService.QueryInterface(Components.interfaces.nsIObserverService);  if (ObserverService)  {    try    {      ObserverService.Notify(null, "quit-application", null);    }    catch (ex)    {      // dump("no observer found \n");    }  }  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 );  var appShell = Components.classes['@mozilla.org/appshell/appShellService;1'].getService();  appShell = appShell.QueryInterface( Components.interfaces.nsIAppShellService );  var nativeAppSupport = null;  try {    nativeAppSupport = appShell.nativeAppSupport;  }  catch ( ex ) {  }  while ( enumerator.hasMoreElements()  )  {    var  windowToClose = enumerator.getNext();    var domWindow = windowManagerInterface.convertISupportsToDOMWindow( windowToClose );    if (!("tryToClose" in domWindow))      domWindow.close();    else    {      if ( !domWindow.tryToClose() )        return false;    }  };  if (!nativeAppSupport || !nativeAppSupport.isServerMode)    appShell.quit();  return true;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/2252e1565b6653c3cc674774083053da4539859d/globalOverlay.js/clean/xpfe/global/resources/content/globalOverlay.js