rem: window.openDialog("chrome: 
add: window.openDialog("chrome: 
context: function OpenSelectedAttachment(){  var bucket = document.getElementById("attachmentBucket");  if (bucket.selectedItems.length == 1)   {    var attachmentUrl = bucket.getSelectedItem(0).attachment.url;    var messagePrefix = /^mailbox-message:|^imap-message:|^news-message:/i;    if (messagePrefix.test(attachmentUrl))    {      // we must be dealing with a forwarded attachment, treat this specially      var messenger = Components.classes["@mozilla.org/messenger;1"].createInstance(Components.interfaces.nsIMessenger);      var msgHdr = messenger.msgHdrFromURI(attachmentUrl);      if (msgHdr)      {        var folderUri = msgHdr.folder.folderURL;        window.openDialog("chrome://messenger/content/messageWindow.xul", "_blank", "all,chrome,dialog=no,status,toolbar",                           attachmentUrl, folderUri, null);      }    }    else    {      var editorElement = GetCurrentEditorElement();      if (editorElement) {        const loadFlags = Components.interfaces.nsIWebNavigation.LOAD_FLAGS_IS_LINK;        try {          editorElement.webNavigation.loadURI(attachmentUrl, loadFlags, null, null, null);        } catch (e) {}      }    }  } // if one attachment selected}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/4cc7df78f937cfb917c781be39bbe817682787c5/MsgComposeCommands.js/clean/mailnews/compose/resources/content/MsgComposeCommands.js