Privileged packaged apps can specify their origin in the manifest (so
you can get app://my-app as origin).

Do we want to let another app to claim these origins as open-in-app?

        Fabrice

On 08/04/2014 08:55 PM, Jonas Sicking wrote:
> On Mon, Aug 4, 2014 at 8:06 PM, John Hu <[email protected]> wrote:
>> Hi Jonas,
>>
>> How about packaged app? If they are pre-installed app, we may know their URL 
>> to fill in "scope" and "open-in-app". But if they are downloaded from 
>> marketplace, the URL of them are all UUIDs.
> 
> I think the main use case for "scope" for a packaged app is going to
> be to declare that the "scope" is all URLs inside the package. That
> can be done by simply doing
> 
> {
>   ...
>   "scope": "/*"
> }
> 
> Or by simply leaving out the scope entirely, since it defaults to the
> origin of the manifest, which is the app://uuid/.
> 
> As things stand right now a packaged app could enumerate any normal
> http website as part of "open-in-app". But they couldn't enumerate
> other packaged apps since you couldn't know the URL of the other
> packaged apps on the user's device.
> 
> However once we implement the changes that I described in the "Future
> of packaged apps" thread, this changes a lot.
> 
> How exactly remains to be seen I think since there's still some
> details there to figure out.
> 
> / Jonas
> 


-- 
Fabrice Desré
b2g team
Mozilla Corporation
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to