rem: window.openDialog("chrome: "chrome,all,dependent", document.getElementById("navigator-toolbox")); 
add: #ifdef TOOLBAR_CUSTOMIZATION_SHEET document.getElementById("customizeToolbarSheetBox").hidden = false;   document.getElementById("cmd_newNavigatorTab") .setAttribute("disabled", "true"); getBrowser()._blockDblClick = true; #else window.openDialog("chrome: "CustomizeToolbar", "chrome,all,dependent", document.getElementById("navigator-toolbox")); #endif 
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");  window.openDialog("chrome://global/content/customizeToolbar.xul", "CustomizeToolbar",                    "chrome,all,dependent", document.getElementById("navigator-toolbox"));}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ac5036c596e3caa889bcdecdecc504507c8722a2/browser.js/buggy/browser/base/content/browser.js