Closed
Bug 1432928
Opened 8 years ago
Closed 8 years ago
Use mutator in extensions.xml::refreshInfo
Categories
(Core :: Networking, enhancement)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla60
| Tracking | Status | |
|---|---|---|
| firefox60 | --- | fixed |
People
(Reporter: valentin, Assigned: valentin)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
| Comment hidden (mozreview-request) |
Comment 2•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8945471 [details]
Bug 1432928 - Use nsIURIMutator in extensions.xml::refreshInfo
https://reviewboard.mozilla.org/r/215622/#review222508
::: toolkit/mozapps/extensions/content/extensions.xml:1935
(Diff revision 1)
> 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,
> + var url = Components.classes["@mozilla.org/network/standard-url-mutator;1"]
> + .createInstance(Components.interfaces.nsIStandardURLMutator)
> + .init(url.URLTYPE_STANDARD, 80,
I wouldn't expect url to be assigned at this point so I suspect that this is failing. Is this passing tests?
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 4•8 years ago
|
||
(In reply to Dave Townsend [:mossop] from comment #2)
> Comment on attachment 8945471 [details]
> > + .createInstance(Components.interfaces.nsIStandardURLMutator)
> > + .init(url.URLTYPE_STANDARD, 80,
>
> I wouldn't expect url to be assigned at this point so I suspect that this is
> failing. Is this passing tests?
You're completely right. The code was faulty.
However, it didn't fail any tests. I assume this code is lacking code coverage, or the error was silently ignored.
Comment 5•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8945471 [details]
Bug 1432928 - Use nsIURIMutator in extensions.xml::refreshInfo
https://reviewboard.mozilla.org/r/215622/#review222836
Attachment #8945471 -
Flags: review?(dtownsend) → review+
Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/0936ba31843e
Use nsIURIMutator in extensions.xml::refreshInfo r=mossop
Comment 7•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in
before you can comment on or make changes to this bug.
Description
•