зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
1c8bfd9d4a
Коммит
b21ae8f2b4
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче