Hi Marco, I'm not Jonas, but I think I know some of the answers.
On 08/15/2014 12:24 AM, Marco Chen wrote: > Hi Jonas, > >> Once we implement the "http://foo.com/package.zip!//file.html" URLs >> for packaged apps, it should work just like for hosted apps. > > Q1: May I know Firefox already has the decision to support it or not? > If answer is yes, does it only support by Firefox or other browser > vendors also? The plan is for now to enable that only on b2g. We'll need to get the !// vetted by standards bodies like w3c and ietf, which is likely a long road. > Q2: For hosted apps, system always looks for the resources from app > cache first then external web site. > For privileged apps, do we need "app scope" been supported first or > looking for resources inside the device then external one in default? I'm not sure to understand you question. With or without app scopes (which are mostly fancy redirects) we will got the cached version whenever it's available - in the http://foo.com/package.zip!//file.html case we keep the zip around. > Q3: How about the support of these privileged apps without origin > definition in their manifest? > Their origin will be the UUID generated by device then how do we > use http scheme to represent them? With http://foo.com/package.zip!//file.html we don't need origin support in the manifest anymore. These apps get their origin from the manifest url. For some use cases like checking csp we need to consider http://foo.com/package.zip as the 'self' scope though, and there are other issues around origins that Jonas and Paul are figuring out. Fabrice -- Fabrice Desré b2g team Mozilla Corporation _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
