rem: if (!gSaveLabel || !gOpenLabel) { var messengerBundle = document.getElementById("bundle_messenger"); gSaveLabel = messengerBundle.getString("saveLabel"); gOpenLabel = messengerBundle.getString("openLabel"); } 
add: if (!gSaveLabel) gSaveLabel = gMessengerBundle.getString("saveLabel"); if (!gSaveLabelAccesskey) gSaveLabelAccesskey = gMessengerBundle.getString("saveLabelAccesskey"); if (!gOpenLabel) gOpenLabel = gMessengerBundle.getString("openLabel"); if (!gOpenLabelAccesskey) gOpenLabelAccesskey = gMessengerBundle.getString("openLabelAccesskey"); 
context: function addAttachmentToPopup(popup, attachment) {   if (popup)  {     var item = document.createElement('menu');    if ( item )     {           // 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]);      item.setAttribute('label', attachment.displayName);       var oncommandPrefix = generateCommandSuffixForAttachment(attachment);      var openpopup = document.createElement('menupopup');      openpopup = item.appendChild(openpopup);      var menuitementry = document.createElement('menuitem');           menuitementry.setAttribute('oncommand', 'openAttachment' + oncommandPrefix);       if (!gSaveLabel || !gOpenLabel) {        var messengerBundle = document.getElementById("bundle_messenger");        gSaveLabel = messengerBundle.getString("saveLabel");        gOpenLabel = messengerBundle.getString("openLabel");      }      menuitementry.setAttribute('label', gOpenLabel);       menuitementry = openpopup.appendChild(menuitementry);      var menuseparator = document.createElement('menuseparator');      openpopup.appendChild(menuseparator);            menuitementry = document.createElement('menuitem');      menuitementry.setAttribute('oncommand', 'saveAttachment' + oncommandPrefix);       menuitementry.setAttribute('label', gSaveLabel);       menuitementry = openpopup.appendChild(menuitementry);    }  // if we created a menu item for this attachment...  } // if we have a popup} 
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f1e323eb6307fc8e09c6bae7daa4d528750e2bd5/msgHdrViewOverlay.js/buggy/mailnews/base/resources/content/msgHdrViewOverlay.js