rem: var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); var enumerator = windowManagerInterface.getEnumerator( null ); 
context: function goQuitApplication(){  if (!canQuitApplication())    return false;  var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService();  var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator);  var enumerator = windowManagerInterface.getEnumerator( null );  var appStartup = Components.classes['@mozilla.org/toolkit/app-startup;1'].                     getService(Components.interfaces.nsIAppStartup);  while ( enumerator.hasMoreElements()  )  {     var domWindow = enumerator.getNext();     if (("tryToClose" in domWindow) && !domWindow.tryToClose())       return false;     domWindow.close();  };  appStartup.quit(Components.interfaces.nsIAppStartup.eAttemptQuit);  return true;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/09aeed6d3936774d55ecb969a7d76e81306e995d/globalOverlay.js/clean/toolkit/content/globalOverlay.js