Hi all
This was brought up in a bug, but the conversation got muddied across a number
of different issues. One thing I'd like to see is an API that allows an app (a
"marketplace app") to modify the manifest URLs (for hosted apps) or mini
manifest URLs (for packaged apps) of apps that the marketplace app has
installed. This allows us to do a few things:
- Prevent users from getting updates to apps that are incompatible with their
devices (i.e. a developer releases a new version of a packaged app that doesn't
work on older devices which may have previously installed the app)
- Enable blocklisting of hosted apps (currently impossible)
- Allow hosted apps to change domains (i.e.: "acmeapp.com" moves to
"getacme.com"; app changes from HTTP to HTTPS; currently impossible)
I imagine an API that's privileged-only that works something like this:
navigator.mozApps.changeManifest("http://old.manifest/url.webapp",
"https://new.manifest/url.webapp")
Note the restrictions:
- Can only be used for manifest URLs which were originally installed by the
marketplace app (i.e.: if the Firefox Marketplace didn't install App X, it
can't change App X's manifest URL)
- For privileged apps initially (though this can probably be lifted at some
point, given the previous restriction)
What are your ideas about an API like this?
-basta
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps