add: if ( !gDragDropEnabled ) return;  
context:   function DragProxyIcon ( event )  {    var dragStarted = false;    var dragService = Components.classes["component://netscape/widget/dragservice"].getService();    if ( dragService ) dragService = dragService.QueryInterface(Components.interfaces.nsIDragService);    if ( dragService ) {      var trans = Components.classes["component://netscape/widget/transferable"].createInstance();      if ( trans ) trans = trans.QueryInterface(Components.interfaces.nsITransferable);      if ( trans ) {        trans.addDataFlavor("text/plain");        var genTextData = Components.classes["component://netscape/supports-string"].createInstance();        if ( genTextData ) genTextData = genTextData.QueryInterface(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();          if ( transArray ) transArray = transArray.QueryInterface(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/9a93c0a39d963416bd6c18c5156314c428e36b14/navigator.js/clean/suite/browser/navigator.js