A question asked in bug 996039 is how application scope will work for
packaged apps?


On Wed, Aug 13, 2014 at 11:19 PM, Jonas Sicking <[email protected]> wrote:

> How will scopes solve that? Say that App A navigates to URL X which is
> not in A's "scope", but is in A's "open-in-app", then X will be loaded
> within A.
>
> The user then goes to app B which also navigates to X, and X is not in
> B's "scope", but is in B's "open-in-app".
>
> Finally the user opens pulls down the rocketbar and types the X URL.
> Do we now open X in A, in B or in the system browser?
>

I would say that URL X is still not in the "scope" of any app so in the
case of being manually entered into the Rocketbar it should open in a
browser window, regardless of what app(s) it has previously been opened in.

Another edge case is if the user brings up the rocketbar, which
> contains the current URL of the current page, and that page is outside
> of "scope", but inside of "open-in-app" of the current page, and then
> simply presses "enter". Does that reload the current page within the
> current app. Or does it switch to the browser app.
>

That is a good question. I would say it also opens a browser window, but
that may feel a little strange in practice. Currently we don't display URLs
in the Rocketbar for hosted apps so that isn't a problem.


Another question which was brought up in bug 996039 was how application
scope should work for packaged apps.

App scope is needed for hosted apps in order define the scope of an app as
a subset of the URLs belonging to a given origin. For packaged apps this is
of limited use because by definition everything inside the package is part
of the app.

But it does raise questions about how packaged apps should behave with app
scope, some of which are discussed in that bug.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to