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 @@ ...@@ -1930,11 +1930,13 @@
if (this.mInstall.name) { if (this.mInstall.name) {
this._name.value = this.mInstall.name; this._name.value = this.mInstall.name;
} else if (this.mInstall.sourceURI) { } else if (this.mInstall.sourceURI) {
var url = Components.classes["@mozilla.org/network/standard-url;1"] var url = Components.classes["@mozilla.org/network/standard-url-mutator;1"]
.createInstance(Components.interfaces.nsIStandardURL); .createInstance(Components.interfaces.nsIStandardURLMutator)
url.init(url.URLTYPE_STANDARD, 80, this.mInstall.sourceURI.spec, .init(Components.interfaces.nsIStandardURL.URLTYPE_STANDARD,
null, null); 80, this.mInstall.sourceURI.spec,
url.QueryInterface(Components.interfaces.nsIURL); null, null)
.finalize()
.QueryInterface(Components.interfaces.nsIURL);
this._name.value = url.fileName; 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