rem: if ( !gDragDropEnabled ) return;  
context: function DropOnContentArea ( event ){   if ( !gDragDropEnabled )    return;    var dropAccepted = false;    var dragService =     Components.classes["component://netscape/widget/dragservice"].getService(Components.interfaces.nsIDragService);  if ( dragService ) {    var dragSession = dragService.getCurrentSession();    if ( dragSession ) {      var trans =         Components.classes["component://netscape/widget/transferable"].createInstance(Components.interfaces.nsITransferable);      if ( trans ) {        trans.addDataFlavor("text/unicode");        trans.addDataFlavor("text/plain");        for ( var i = 0; i < dragSession.numDropItems; ++i ) {          var id = "";          dragSession.getData ( trans, i );          var dataObj = new Object();          var bestFlavor = new Object();          var len = new Object();          trans.getAnyTransferData ( bestFlavor, dataObj, len );          if ( bestFlavor.value == "text/unicode" ) {            if ( dataObj ) dataObj = dataObj.value.QueryInterface(Components.interfaces.nsISupportsWString);            if ( dataObj ) {                          // pull the URL out of the data object, two byte data              var id = dataObj.data.substring(0, len.value / 2);              dump("ID: '" + id + "'\n");            }          }          else {            if ( dataObj ) dataObj = dataObj.value.QueryInterface(Components.interfaces.nsISupportsString);            if ( dataObj ) {                          // pull the URL out of the data object              var id = dataObj.data.substring(0, len.value);              dump("ID: '" + id + "'\n");            }          }                    // stuff it into the url field and go, baby, go!          var urlBar = document.getElementById ( "urlbar" );          urlBar.value = id;          BrowserLoadURL();                      event.preventBubble();        } // foreach drag item      }    }  }} // DropOnContentArea
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/ff5704575e6cd5f8b471112e5671154d967e100b/navigatorDD.js/clean/xpfe/browser/resources/content/navigatorDD.js