rem: window.openDialog("chrome: "chrome,all,dependent", document.getElementById(id)); 
add: window.openDialog("chrome: "chrome,all,dependent", document.getElementById(id)); 
context: function CustomizeMailToolbar(id){  // Disable the toolbar context menu items  var menubar = document.getElementById("mail-menubar");  for (var i = 0; i < menubar.childNodes.length; ++i)    menubar.childNodes[i].setAttribute("disabled", true);      var customizePopup = document.getElementById("CustomizeMailToolbar");   customizePopup.setAttribute("disabled", "true");      window.openDialog("chrome://global/content/customizeToolbar.xul", "CustomizeToolbar",                     "chrome,all,dependent", document.getElementById(id));}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/c6cb7ca6a5abbfe3b2e7babb49a34eb47165a188/mailCore.js/buggy/mail/base/content/mailCore.js