rem: if (url) { var channel = gIOService.newChannelFromURI(url); if (channel) 
add: if (url) 
context: function OpenSelectedAttachment(){  var child;  var bucket = document.getElementById("attachmentBucket");  if (bucket.selectedItems.length == 1)   {    var attachmentItem = bucket.getSelectedItem(0);    // turn the url into a nsIURL object then open it    var url = gIOService.newURI(attachmentItem.attachment.url, null, null);    url = url.QueryInterface( Components.interfaces.nsIURL );    if (url)    {      var channel = gIOService.newChannelFromURI(url);      if (channel)      {        var uriLoader = Components.classes["@mozilla.org/uriloader;1"].getService(Components.interfaces.nsIURILoader);        uriLoader.openURI(channel, true, new nsAttachmentOpener());      } // if channel    } // if url  } // if one attachment selected}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1d36a54a68df3fcfb84e38172ff8a512505549e7/MsgComposeCommands.js/clean/mail/components/compose/content/MsgComposeCommands.js