rem: dragService.invokeDragSession ( transArray, null, nsIDragService.DRAGDROP_ACTION_COPY + 
add: dragService.invokeDragSession ( event.target, transArray, null, nsIDragService.DRAGDROP_ACTION_COPY + 
context: function DragProxyIcon ( event ){  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);      if ( genTextData ) {              // pull the url out of the url bar        var urlBar = document.getElementById ( "urlbar" );        if ( !urlBar )          return;                    var id = urlBar.value;        genTextData.data = id;              dump("ID: " + id + "\n");        // first and foremost, we are a URL        var urlData = Components.classes["component://netscape/supports-wstring"].createInstance();        if ( urlData )          urlData = urlData.QueryInterface(Components.interfaces.nsISupportsWString);        if ( urlData ) {          urlData.data = id;          trans.addDataFlavor("text/x-moz-url");          trans.setTransferData( "text/x-moz-url", urlData, id.length * 2);        }                // add text/html flavor next        var htmlData = Components.classes["component://netscape/supports-wstring"].createInstance();        if ( htmlData )          htmlData = htmlData.QueryInterface(Components.interfaces.nsISupportsWString);        if ( htmlData ) {          var htmlstring = "<A href=\"" + genTextData + "\">" + genTextData + "</A>";          htmlData.data = htmlstring;          trans.addDataFlavor("text/html");          trans.setTransferData( "text/html", htmlData, htmlstring.length * 2);        }               // add the text/unicode flavor as a fallback        trans.addDataFlavor("text/unicode");        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();  } // DragProxyIcon
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0c313a8a5eaf1b6854dee94931748da60b62873d/navigatorDD.js/buggy/suite/browser/navigatorDD.js