rem: if ( !gDragDropEnabled ) return;  
context: function DragProxyIcon ( event ){  if ( !gDragDropEnabled )    return;    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 ) {      trans.addDataFlavor("text/plain");      var genTextData =        Components.classes["component://netscape/supports-string"].createInstance(Components.interfaces.nsISupportsString);      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");        trans.setTransferData ( "text/plain", genTextData, id.length );  // single 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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/909bdf23f13958e9128d18ce3e5cf6283b655fab/navigatorDD.js/buggy/suite/browser/navigatorDD.js