Closed
Bug 661082
Opened 13 years ago
Closed 13 years ago
cfx xpi is ignoring package.json's "url" property
Categories
(Add-on SDK Graveyard :: Documentation, defect, P2)
Add-on SDK Graveyard
Documentation
Tracking
(Not tracked)
RESOLVED
FIXED
1.0
People
(Reporter: KWierso, Unassigned)
Details
Attachments
(1 file)
1.28 KB,
patch
|
irakli
:
review+
|
Details | Diff | Splinter Review |
Looks like rdf.py is checking for a "homepage" property, and then deletes the em:homepageURL element from install.rdf: if target_cfg.get("homepage"): manifest.set("em:homepageURL", target_cfg.get("homepage")) else: manifest.remove("em:homepageURL") The package specification page says that the property is "url", not "homepage": https://jetpack.mozillalabs.com/sdk/1.0b5/docs/dev-guide/addon-development/package-spec.html (unless that has changed since 1.0b5) Changing "homepage" to "url" makes it so the rdf element is not deleted. Actual results: Documentation says to use "url", but the code checks for "homepage". Expected results: Either change the documentation to match the code or vice versa.
Comment 1•13 years ago
|
||
Brian: do you have any idea whether this should be a code or a docs change? It isn't clear at first glance what our intention was here.
Component: General → Documentation
OS: Windows 7 → All
Priority: -- → P2
QA Contact: general → documentation
Hardware: x86 → All
Target Milestone: --- → 1.0
Comment 2•13 years ago
|
||
Hm. I see four things that ought to agree on a single term: * package-spec.md documents "url" * packaging.py copies "url" into the metadata inside harness-options.json * rdf.py copies "homepage" into install.rdf's em:homepageURL field * http://wiki.commonjs.org/wiki/Packages/1.1 says "homepage", not "url" I have no strong feelings one way or the other, so it feels to me like we might as well match the CommonJS terminology. That means changing the docs to say "homepage", and change packaging.py to copy "homepage" instead of "url" into the metadata field. I'll write up a patch now.
Comment 3•13 years ago
|
||
KWierso: can you give this patch a try and see if it work for you?
Attachment #536762 -
Flags: review?(rFobic)
Reporter | ||
Comment 4•13 years ago
|
||
(In reply to comment #3) > Created attachment 536762 [details] [diff] [review] [review] > use "homepage", not "url" > > KWierso: can you give this patch a try and see if it work for you? With that patch, "homepage" in package.json is carried over to <em:homepageURL> in install.rdf.
Comment 5•13 years ago
|
||
Comment on attachment 536762 [details] [diff] [review] use "homepage", not "url" Review of attachment 536762 [details] [diff] [review]: ----------------------------------------------------------------- Awesome, thanks warner!
Attachment #536762 -
Flags: review?(rFobic) → review+
Comment 6•13 years ago
|
||
ok, I think the only thing keeping this from landing is the freeze, since this is scheduled for 1.0 but we've already made an RC. myk: am I getting that right?
Comment 7•13 years ago
|
||
Low risk, a=myk for commission during freeze.
Comment 8•13 years ago
|
||
landed, in https://github.com/mozilla/addon-sdk/commit/7b7753bb891ea83b45a3f209eddf6970b801c147 myk: you'll want to cherry-pick that to the 1.0 branch
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•