Commit 1c25c7a3 authored by valenting's avatar valenting
Browse files

Bug 1432928 - Use nsIURIMutator in extensions.xml::refreshInfo r=mossop

MozReview-Commit-ID: GN4PXoWkX8V

--HG--
extra : rebase_source : 33709d70cfe24eb5173bb8c89c3bec07848d7438
parent a8fd11ad
......@@ -1930,11 +1930,13 @@
if (this.mInstall.name) {
this._name.value = this.mInstall.name;
} else if (this.mInstall.sourceURI) {
var url = Components.classes["@mozilla.org/network/standard-url;1"]
.createInstance(Components.interfaces.nsIStandardURL);
url.init(url.URLTYPE_STANDARD, 80, this.mInstall.sourceURI.spec,
null, null);
url.QueryInterface(Components.interfaces.nsIURL);
var url = Components.classes["@mozilla.org/network/standard-url-mutator;1"]
.createInstance(Components.interfaces.nsIStandardURLMutator)
.init(Components.interfaces.nsIStandardURL.URLTYPE_STANDARD,
80, this.mInstall.sourceURI.spec,
null, null)
.finalize()
.QueryInterface(Components.interfaces.nsIURL);
this._name.value = url.fileName;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment