add: if ( !gDragDropEnabled ) return;  
context:   function DropOnContentArea ( event )  {     var dropAccepted = false;        var dragService = Components.classes["component://netscape/widget/dragservice"].getService();    if ( dragService ) dragService = dragService.QueryInterface(Components.interfaces.nsIDragService);    if ( dragService ) {      var dragSession = dragService.getCurrentSession();      if ( dragSession ) {        var trans = Components.classes["component://netscape/widget/transferable"].createInstance();        if ( trans ) trans = trans.QueryInterface(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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9a93c0a39d963416bd6c18c5156314c428e36b14/navigator.js/clean/suite/browser/navigator.js