Fix drag/drop of extensions and themes to extension manager to work. Bug

260068, patch by Rich Walsh <dragtext@e-vertise.com>, r=mconnor
This commit is contained in:
bzbarsky%mit.edu 2005-03-08 21:05:21 +00:00
Родитель 1c8bfd9d4a
Коммит b21ae8f2b4
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -607,7 +607,7 @@ var gExtensionsDNDObserver =
var data = { }, length = { };
xfer.getTransferData("text/x-moz-url", data, length);
var fileURL = data.value.QueryInterface(Components.interfaces.nsISupportsString).data;
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);
@ -636,7 +636,7 @@ var gExtensionsDNDObserver =
var data = { }, length = { };
xfer.getTransferData("text/x-moz-url", data, length);
var fileURL = data.value.QueryInterface(Components.interfaces.nsISupportsString).data;
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;