rem: var uri = Components.classes["@mozilla.org/network/standard-url;1"] .createInstance(Components.interfaces.nsIURI); uri.spec = fileURL; 
add:  var uri = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService) .newURI(fileURL, null, null);  
context:   onDrop: function(aEvent, aXferData, aDragSession)  {    this._ensureServices();        var xpinstallObj = {};    var themes = {};    var xpiCount = 0;    var themeCount = 0;        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 uri = Components.classes["@mozilla.org/network/standard-url;1"]                          .createInstance(Components.interfaces.nsIURI);      uri.spec = fileURL;      var url = uri.QueryInterface(Components.interfaces.nsIURL);      if (url.fileExtension == "xpi") {        xpinstallObj[url.fileName] = fileURL;        ++xpiCount;      }      else if (url.fileExtension == "jar") {        themes[url.fileName] = fileURL;        ++themeCount;      }    }    if (xpiCount > 0)       InstallTrigger.install(xpinstallObj);    if (themeCount > 0) {      for (var fileName in themes)        InstallTrigger.installChrome(InstallTrigger.SKIN, themes[fileName], fileName);    }  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c6a3ed4cdda98a9d38469cd45022bea2ef388178/extensions.js/buggy/toolkit/mozapps/extensions/content/extensions.js