Closed
Bug 574541
Opened 14 years ago
Closed 14 years ago
getResourceURI fails to work correctly with files in subdirectories of the add-on
Categories
(Toolkit :: Add-ons Manager, defect)
Toolkit
Add-ons Manager
Tracking
()
VERIFIED
FIXED
mozilla2.0b1
People
(Reporter: mossop, Assigned: mossop)
Details
Attachments
(1 file)
7.47 KB,
patch
|
robert.strong.bugs
:
review+
|
Details | Diff | Splinter Review |
We're just appending the path to the add-ons directory which doesn't work for subdirectories. Would very much like to fix this for beta 1 if possible as it breaks the new version of an API that add-on developers used to use.
Assignee | ||
Comment 1•14 years ago
|
||
This is the patch. Fairly simple, the tests are the bulk of it. Also had to fix the build config to support zipping up subdirectories for the test addons. For uninstalled XPIs I fixed getResourceURI to return a plain URL to the XPI file rather than a broken link to an undefined entry in the XPI. For both XPI and extracted cases I test that the following files exist and give a correct URI: install.rdf icon.png subdir/subfile.txt I also test that these don't claim to be present: missing.txt subdir/missing.txt
Assignee: nobody → dtownsend
Status: NEW → ASSIGNED
Attachment #453950 -
Flags: review?(robert.bugzilla)
Comment 2•14 years ago
|
||
Comment on attachment 453950 [details] [diff] [review] patch rev 1 Sweet! I didn't verify this works for registry and file pointer installs but I can't think of any reason they wouldn't just work.
Attachment #453950 -
Flags: review?(robert.bugzilla) → review+
Assignee | ||
Comment 3•14 years ago
|
||
Landed: http://hg.mozilla.org/mozilla-central/rev/c13c4f35a17b
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Flags: in-litmus-
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a6
Comment 4•14 years ago
|
||
Marking as verified fixed based on landing and no regression in an automated test.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•