rem: dragService.invokeDragSession ( transArray, null, nsIDragService.DRAGDROP_ACTION_COPY + 
add: dragService.invokeDragSession ( event.target, transArray, null, nsIDragService.DRAGDROP_ACTION_COPY + 
context: function DragContentLink ( event ){  var target = event.target;  var dragStarted = false;  var dragService =     Components.classes["component://netscape/widget/dragservice"].getService(Components.interfaces.nsIDragService);  if ( dragService ) {    var trans =       Components.classes["component://netscape/widget/transferable"].createInstance(Components.interfaces.nsITransferable);    if ( trans ) {      var genTextData =        Components.classes["component://netscape/supports-wstring"].createInstance(Components.interfaces.nsISupportsWString);      var htmlData =        Components.classes["component://netscape/supports-wstring"].createInstance(Components.interfaces.nsISupportsWString);      if ( genTextData && htmlData ) {            trans.addDataFlavor("text/html");      trans.addDataFlavor("text/unicode");        // pull the url out of the link        var href = enclosingLink(target);        if ( href == "" )          return;        var id = href        genTextData.data = id;        var htmlstring = "<A href=\"" + id + "\">" + id + "</A>";        htmlData.data = htmlstring;             dump("ID: " + id + "\n");        trans.setTransferData ( "text/html", htmlData, htmlstring.length * 2 );  // double byte data        trans.setTransferData ( "text/unicode", genTextData, id.length * 2 );  // double byte data        var transArray =           Components.classes["component://netscape/supports-array"].createInstance(Components.interfaces.nsISupportsArray);        if ( transArray ) {          // put it into the transferable as an |nsISupports|          var genTrans = trans.QueryInterface(Components.interfaces.nsISupports);          transArray.AppendElement(genTrans);          var nsIDragService = Components.interfaces.nsIDragService;          dragService.invokeDragSession ( transArray, null, nsIDragService.DRAGDROP_ACTION_COPY +                                               nsIDragService.DRAGDROP_ACTION_MOVE );          dragStarted = true;        }      } // if data object    } // if transferable  } // if drag service  if ( dragStarted )               // don't propagate the event if a drag has begun    event.preventBubble();  } // DragContentLink
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/644b37485027c54a631175516801e24337db859e/navigatorDD.js/buggy/xpfe/browser/resources/content/navigatorDD.js