rem: if (emailAddress) {   var iid = Components.interfaces[ "nsIClipboard" ]; var clipboard = Components.classes[ "@mozilla.org/widget/clipboard;1" ].getService( iid ); 
context: function CopyEmailAddress(emailAddressNode){  if (emailAddressNode)  {    var emailAddress = emailAddressNode.getAttribute("emailAddress");    if (emailAddress)    {      // This code stolen from nsContextMenu.js.      // Get clipboard.      var iid = Components.interfaces[ "nsIClipboard" ];      var clipboard = Components.classes[ "@mozilla.org/widget/clipboard;1" ].getService( iid );      // Create tranferable that will transfer the text.      iid = Components.interfaces[ "nsITransferable" ];      var transferable = Components.classes[ "@mozilla.org/widget/transferable;1" ].createInstance( iid );      if ( clipboard && transferable )      {        transferable.addDataFlavor( "text/unicode" );        // Create wrapper for text.        iid = Components.interfaces[ "nsISupportsWString" ];        var data = Components.classes[ "@mozilla.org/supports-wstring;1" ].createInstance( iid );        if ( data )        {          data.data = emailAddress;          transferable.setTransferData( "text/unicode", data, emailAddress.length * 2 );          // Put on clipboard.          clipboard.setData( transferable,                             null,                             Components.interfaces.nsIClipboard.kGlobalClipboard );        }      }    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0b8398d67b1a3b04793209423a3948244501b425/msgHdrViewOverlay.js/buggy/mailnews/base/resources/content/msgHdrViewOverlay.js