rem: onDragOver: function (aEvent, aFlavor, aDragSession) { this._ensureServices();  aDragSession.canDrop = true; var count = aDragSession.numDropItems; for (var i = 0; i < count; ++i) { var xfer = Components.classes["@mozilla.org/widget/transferable;1"] .createInstance(Components.interfaces.nsITransferable); xfer.addDataFlavor("text/x-moz-url"); aDragSession.getData(xfer, i);  var data = { }, length = { }; xfer.getTransferData("text/x-moz-url", data, length); var fileURL = data.value.QueryInterface(Components.interfaces.nsISupportsString).data.split("\n")[0];  var fileURI = this._ioServ.newURI(fileURL, null, null); var url = fileURI.QueryInterface(Components.interfaces.nsIURL); if (url.fileExtension != "jar" && url.fileExtension != "xpi") { aDragSession.canDrop = false; break; } } }, 
add: onDragOver: function (aEvent, aFlavor, aDragSession) { }, 
context:   onDragOver: function (aEvent, aFlavor, aDragSession)  {    this._ensureServices();      aDragSession.canDrop = true;    var count = aDragSession.numDropItems;    for (var i = 0; i < count; ++i) {      var xfer = Components.classes["@mozilla.org/widget/transferable;1"]                          .createInstance(Components.interfaces.nsITransferable);      xfer.addDataFlavor("text/x-moz-url");      aDragSession.getData(xfer, i);            var data = { }, length = { };      xfer.getTransferData("text/x-moz-url", data, length);      var fileURL = data.value.QueryInterface(Components.interfaces.nsISupportsString).data.split("\n")[0];      var fileURI = this._ioServ.newURI(fileURL, null, null);      var url = fileURI.QueryInterface(Components.interfaces.nsIURL);      if (url.fileExtension != "jar" && url.fileExtension != "xpi") {        aDragSession.canDrop = false;        break;      }    }  },
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e249f3234396e5c985d3150c9c831f9e7d60559c/extensions.js/buggy/toolkit/mozapps/extensions/content/extensions.js