add: #ifndef XP_MACOSX if (gBrowser.localName == "tabbrowser" && window.toolbar.visible && !gPrefService.getBoolPref("browser.tabs.autoHide")) {  gBrowser.removeCurrentTab(); if (gURLBar) setTimeout(function() { gURLBar.focus(); }, 0); return; } #endif 
context: function BrowserCloseTabOrWindow(){#ifdef XP_MACOSX  // If we're not a browser window, just close the window  if (window.location.href != getBrowserURL()) {    closeWindow(true);    return;  }#endif  if (gBrowser.localName == "tabbrowser" && (gBrowser.tabContainer.childNodes.length > 1 ||      !gPrefService.getBoolPref("browser.tabs.autoHide") && window.toolbar.visible)) {    // Just close up a tab.    gBrowser.removeCurrentTab();    return;  }  BrowserCloseWindow();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4b799ac2503e446d7158f4569ebcbcbf3272f0a9/browser.js/buggy/browser/base/content/browser.js