rem:  var disabledItems = ['newNewMsgCmd', 'menu_newFolder', 'newAccountMenuItem', 'menu_close', 'menu_sendunsentmsgs', 'menu_subscribe', 'menu_renameFolder', 'menu_selectAll', 'menu_showMessengerToolbar', 'menu_showSearchToolbar', 'menu_showTaskbar', 'menu_customizeToolbar', 'messagePaneClassic', 'messagePaneWide', 'messagePaneVertical', 'menu_showMessage', 'sortByDateMenuitem', 'sortByFlagMenuitem', 'sortByOrderReceivedMenuitem', 'sortByPriorityMenuitem', 'sortBySenderMenuitem', 'sortByRecipientMenuitem', 'sortBySenderOrRecipientMenuitem', 'sortBySizeMenuitem', 'sortByStatusMenuitem', 'sortBySubjectMenuitem', 'sortByThreadMenuitem', 'sortByUnreadMenuitem', 'sortByTagsMenuitem', 'sortByJunkStatusMenuitem', 'sortByAttachmentsMenuitem', 'sortAscending', 'sortDescending', 'viewThreaded', 'viewMessageViewMenu', 'viewAll', 'viewUnread', 'viewLabelMenuItem1', 'viewUnread', 'viewLabelMenuItem1', 'viewLabelMenuItem2', 'viewLabelMenuItem3', 'viewLabelMenuItem4', 'viewLabelMenuItem5', 'viewCreateCustomView', 'viewallheaders', 'viewnormalheaders', 'bodyAllowHTML', 'bodySanitized', 'bodyAsPlaintext', 'viewAttachmentsInlineMenuitem', 'goStartPage', 'newMsgCmd', 'searchMailCmd', 'searchAddressesCmd', 'filtersCmd', 'junkMailCmd']; for (var id in disabledItems) { var broadcaster = document.getElementById(disabledItems[id]); if (broadcaster) broadcaster.setAttribute("disabled", "true"); } 
add:  document.getElementById("sep-window-list").setAttribute("hidden", "true"); 
context: function hiddenWindowStartup(){  // focus the hidden window  window.focus();  // Disable menus which are not appropriate  var disabledItems = ['newNewMsgCmd', 'menu_newFolder', 'newAccountMenuItem', 'menu_close',                       'menu_sendunsentmsgs', 'menu_subscribe', 'menu_renameFolder', 'menu_selectAll',                       'menu_showMessengerToolbar', 'menu_showSearchToolbar', 'menu_showTaskbar', 'menu_customizeToolbar',                       'messagePaneClassic', 'messagePaneWide', 'messagePaneVertical', 'menu_showMessage',                       'sortByDateMenuitem', 'sortByFlagMenuitem', 'sortByOrderReceivedMenuitem', 'sortByPriorityMenuitem',                       'sortBySenderMenuitem', 'sortByRecipientMenuitem', 'sortBySenderOrRecipientMenuitem', 'sortBySizeMenuitem',                       'sortByStatusMenuitem', 'sortBySubjectMenuitem', 'sortByThreadMenuitem', 'sortByUnreadMenuitem',                       'sortByTagsMenuitem', 'sortByJunkStatusMenuitem', 'sortByAttachmentsMenuitem', 'sortAscending', 'sortDescending',                       'viewThreaded', 'viewMessageViewMenu', 'viewAll', 'viewUnread', 'viewLabelMenuItem1',                       'viewUnread', 'viewLabelMenuItem1', 'viewLabelMenuItem2', 'viewLabelMenuItem3',                       'viewLabelMenuItem4', 'viewLabelMenuItem5', 'viewCreateCustomView', 'viewallheaders',                       'viewnormalheaders', 'bodyAllowHTML', 'bodySanitized', 'bodyAsPlaintext',                       'viewAttachmentsInlineMenuitem', 'goStartPage', 'newMsgCmd',                       'searchMailCmd', 'searchAddressesCmd', 'filtersCmd', 'junkMailCmd'];  for (var id in disabledItems)   {    var broadcaster = document.getElementById(disabledItems[id]);    if (broadcaster)      broadcaster.setAttribute("disabled", "true");  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/dec6e510679ff61043a71ab4109eba860eaac375/hiddenWindow.js/clean/mail/base/content/hiddenWindow.js