On 6/19/12 6:43 AM, Anant Narayanan wrote:
On 06/18/2012 06:51 PM, Jonas Sicking wrote:
Please let's not create APIs which have different meanings depending on
if the caller is privileged or not. That's just confusing to developers
and to us. And makes future extensions to such APIs even more tricky.

IMHO:
* getInstalled() should *always* just returned the list of apps
installed by the current origin.
* mgmt.getAll() should not be callable from non-privileged callers, and
for privileged callers should return any launchable app. (My
understanding is that only "natively installed" apps are launchable?)
* mgmt.getAllSynced() or some such should return any app which is in the
registry but is not launchable

Would this satisfy all requirements?

Yes, I believe it would, though I would propose a tiny tweak:
- Keep all existing functions as they behave today.
- Add mgmt.getAllInstalled() to return only the set of apps that are
installed and launchable.

I would add that we should also change getSelf/getInstalled should only return an app object if the app is natively installed.

-Anant
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps

Reply via email to