Closed Bug 932994 Opened 11 years ago Closed 11 years ago

Marketplace isn't passing the app categories to mozApps.install

Categories

(Marketplace Graveyard :: General, defect)

Avenir
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: marco, Unassigned)

Details

See also bug 876293.
The Marketplace should pass a categories parameter to mozApps install (like it does with the receipts).
This parameter is an array that contains the names of the categories the app belongs to.

The list of category names is hardcoded in Firefox: http://mxr.mozilla.org/mozilla-central/source/toolkit/webapps/WebappsInstaller.jsm#960
What is the use case for this?
I believe for desktop apps on Linux, to place the app in the correct applications category.
What happens if our categories don't match up to the platform's predefined categories?
They won't exactly, but there's probably a rough mapping in Firefox.
https://github.com/mozilla/fireplace/commit/b2728db94eea9ba3ecc0e849d6199d2214da8173

Let's hope it's fine. That seems really brittle.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.