rem:  document.getElementById("cmd_newNavigatorTab") .setAttribute("disabled", "true"); getBrowser()._blockDblClick = true; 
add: /** * XXXmano hack: when a new tab is added while the sheet is visible, * the new tabpanel is overlaying the sheet. We workaround this issue by * hiding and reopening the sheet when a new tab is added. */ function TabOpenSheetHandler(aEvent) { getBrowser().removeEventListener("TabOpen", TabOpenSheetHandler, false);  document.getElementById("customizeToolbarSheetIFrame") .contentWindow.gCustomizeToolbarSheet.done(); document.getElementById("customizeToolbarSheetBox").hidden = true; BrowserCustomizeToolbar();  } getBrowser().addEventListener("TabOpen", TabOpenSheetHandler, false); 
context: function BrowserCustomizeToolbar(){  // Disable the toolbar context menu items  var menubar = document.getElementById("main-menubar");  for (var i = 0; i < menubar.childNodes.length; ++i)    menubar.childNodes[i].setAttribute("disabled", true);  var cmd = document.getElementById("cmd_CustomizeToolbars");  cmd.setAttribute("disabled", "true");#ifdef TOOLBAR_CUSTOMIZATION_SHEET  document.getElementById("customizeToolbarSheetBox").hidden = false;  // New tabs are breaking the xul stack  document.getElementById("cmd_newNavigatorTab")          .setAttribute("disabled", "true");  getBrowser()._blockDblClick = true;#else  window.openDialog("chrome://global/content/customizeToolbar.xul",                    "CustomizeToolbar",                    "chrome,all,dependent",                    document.getElementById("navigator-toolbox"));#endif}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/c219688c808ba055f7ad1e4a4140cd9b3c49ff9c/browser.js/buggy/browser/base/content/browser.js