On 06/18/2012 04:52 PM, Anant Narayanan wrote:
> Oh, I apologize, I noticed an error in my original email. This line:
>
>> - getInstalled retains its current behaviour when called from an origin
>> that is not privileged (e.g. an app store).
>
> should instead read:
>
> - getInstalled will return the list of "natively" installed apps for an
> origin that is not privileged, but will retain the current behavior in
> the sense that only apps installed from that origin will be reported.
Thanks Anant,
Trying to summarize:
- For a non privileged page:
- getInstalled() returns apps from this origin that are natively
installed.
- getAll() fails.
- getSelf() return the app only if it is "natively" installed???
- For a privileged page:
- getInstalled() returns apps from any origin that are natively installed.
- getAll() returns apps from any origin that are in the DOM registry.
- getSelf() returns the app if it is installed in the DOM registry???
On b2g, I guess we should consider all apps in the DOM registry as
"natively installed". Doesn't this mean that getAll() is useless, since
a dashboard will ask for privileges and thus can just use getInstalled()
to get all the apps?
I'd still like to get an explanation on why we do have to manage a
situation where the DOM registry and the natively installed apps are not
the same list.
Fabrice
--
Fabrice Desré
b2g Team
Mozilla Corporation
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps