rem: if (!nativeAppSupport || !nativeAppSupport.isServerMode) appShell.quit(Components.interfaces.nsIAppShellService.eAttemptQuit); 
add: appShell.quit(Components.interfaces.nsIAppShellService.eAttemptQuit); 
context: function goQuitApplication(){  if (!canQuitApplication())    return;      var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].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 domWindow = enumerator.getNext();     if (("tryToClose" in domWindow) && !domWindow.tryToClose())       return false;               domWindow.close();  };  if (!nativeAppSupport || !nativeAppSupport.isServerMode)    appShell.quit(Components.interfaces.nsIAppShellService.eAttemptQuit);  return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d9ba66a275a5e97dde21555f69d35ddeb63479d9/globalOverlay.js/clean/toolkit/content/globalOverlay.js