document.getElementById("customizeToolbarSheetBox").hidden = false;  /** * 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); 
var sheetFrame = document.getElementById("customizeToolbarSheetIFrame"); sheetFrame.hidden = false;   var sheetWidth = sheetFrame.style.width.match(/([0-9]+)px/)[1]; document.getElementById("customizeToolbarSheetPopup") .openPopup(getNavToolbox(), "after_start", (window.innerWidth - sheetWidth) / 2, 0); 
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;  /**   * 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);#else  window.openDialog("chrome://global/content/customizeToolbar.xul",                    "CustomizeToolbar",                    "chrome,all,dependent",                    getNavToolbox());#endif}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/f6e992a2df3e174453ac8b5609dc5818e3fdf7aa/browser.js/buggy/browser/base/content/browser.js