Properly parse jar: URLs from add-ons (bug 876806); r=vporof

This commit is contained in:
Panos Astithas 2013-07-08 17:47:30 +03:00
parent 7d2eb0b7fa
commit a25cae7f9b

@ -1067,7 +1067,12 @@ let SourceUtils = {
return "";
}
let { scheme, hostPort, directory, fileName } = uri;
let { scheme, directory, fileName } = uri;
let hostPort;
// Add-on SDK jar: URLs will cause accessing hostPort to throw.
if (scheme != "jar") {
hostPort = uri.hostPort;
}
let lastDir = directory.split("/").reverse()[1];
let group = [];