Hi all,
jst and I had a brief chat on this topic today and have the following
proposal:
- getInstalled retains its current behaviour when called from an origin
that is not privileged (e.g. an app store).
- getInstalled, when called from a privileged origin, will return a list
of "natively" installed apps, where the natively-installed-or-not bit is
determined by the WebRT which takes into context the operating system
and other pertinent information. (In B2G, getAll and getInstalled will
always return the same set of apps, for instance).
- getAll retains its current behaviour of returning all apps in the
local registry and can only be accessed from a privileged domain.
As for re-purposing getInstalled to act differently when called from a
privileged domain, we should consider that every other API call in the
mozApps namespace with the exception of install is context-sensitive;
and the results vary based on who the caller is. This is therefore not a
departure from the rest of the API as currently defined.
Please send any major objections to the list. If there are none, I
propose we move ahead with bug 749033 ASAP.
Thanks,
-Anant
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps