rem: if (windowCount == 1 && !canQuitApplication()) 
add: if (windowCount == 1 && !canQuitApplication()) 
context: function closeWindow(aClose){  var windowCount = 0;  var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);  var e = wm.getEnumerator(null);    while (e.hasMoreElements()) {    var w = e.getNext();    ++windowCount;    if (windowCount == 2)       break;  }# Closing the last window doesn't quit the application on OS X.#ifndef XP_MACOSX  // If we're down to the last window and someone tries to shut down, check to make sure we can!  if (windowCount == 1 && !canQuitApplication())     return false;#endif  if (aClose)        window.close();    return true;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0631fb6765fa790bdbf572df7bb9cf5a1788da7d/globalOverlay.js/buggy/toolkit/content/globalOverlay.js