rem: setApplicationIconForAttachment(attachment,item); 
add: setApplicationIconForAttachment(attachment,item, false); 
context: function addAttachmentToPopup(popup, attachment, attachmentIndex) {   if (popup)  {     var item = document.createElement('menu');    if ( item )     {           if (!gMessengerBundle)        gMessengerBundle = document.getElementById("bundle_messenger");      // insert the item just before the separator...the separator is the 2nd to last element in the popup.      item.setAttribute('class', 'menu-iconic');      setApplicationIconForAttachment(attachment,item);      var numItemsInPopup = popup.childNodes.length;      item = popup.insertBefore(item, popup.childNodes[numItemsInPopup-2]);      var formattedDisplayNameString = gMessengerBundle.getFormattedString("attachmentDisplayNameFormat",                                       [attachmentIndex, attachment.displayName]);      item.setAttribute('label', formattedDisplayNameString);       item.setAttribute('accesskey', attachmentIndex);       var openpopup = document.createElement('menupopup');      openpopup = item.appendChild(openpopup);      var menuitementry = document.createElement('menuitem');           menuitementry.attachment = cloneAttachment(attachment);      menuitementry.setAttribute('oncommand', 'openAttachment(this.attachment)');       if (!gSaveLabel)        gSaveLabel = gMessengerBundle.getString("saveLabel");      if (!gSaveLabelAccesskey)        gSaveLabelAccesskey = gMessengerBundle.getString("saveLabelAccesskey");      if (!gOpenLabel)        gOpenLabel = gMessengerBundle.getString("openLabel");      if (!gOpenLabelAccesskey)        gOpenLabelAccesskey = gMessengerBundle.getString("openLabelAccesskey");      menuitementry.setAttribute('label', gOpenLabel);       menuitementry.setAttribute('accesskey', gOpenLabelAccesskey);       menuitementry = openpopup.appendChild(menuitementry);      var menuseparator = document.createElement('menuseparator');      openpopup.appendChild(menuseparator);            menuitementry = document.createElement('menuitem');      menuitementry.attachment = cloneAttachment(attachment);      menuitementry.setAttribute('oncommand', 'saveAttachment(this.attachment)');       menuitementry.setAttribute('label', gSaveLabel);       menuitementry.setAttribute('accesskey', gSaveLabelAccesskey);       menuitementry = openpopup.appendChild(menuitementry);    }  // if we created a menu item for this attachment...  } // if we have a popup} 
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/3cd4a0e822d09bf82902224282243570892b9405/msgHdrViewOverlay.js/buggy/mail/base/content/msgHdrViewOverlay.js