add: #ifdef XP_MACOSX  if (window.location.href != getBrowserURL()) { closeWindow(true); return; } #endif  
context: function BrowserCloseTabOrWindow(){  if (gBrowser.localName == 'tabbrowser' && gBrowser.tabContainer.childNodes.length > 1) {    // Just close up a tab.    gBrowser.removeCurrentTab();    return;  }  BrowserCloseWindow();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/e1aa3964923518c6ec2fbb08a75b61ba2915ebc9/browser.js/buggy/browser/base/content/browser.js