Re: [manifest] Handleing capabilities with Manifoldjs (#412)

@mikewest wrote:  
>  I don't have enough context to understand the discussion in this thread. :) Would someone mind summarizing the proposal? In particular, I don't understand what "access" is being granted to these other origins. What powers are associated with being in this list?

Imagine this scenario - it's the simplest one and most applicable (the access being granted is to a particular "display mode", which controls what browser chrome is shown to the user):

 1. A progressive Web App called "News" is actually composed of a set of domains (a.news..com, b.news.com, news-is-awesome.com, etc.)
 1. When the web app is launched from the home screen, it is displayed "full screen" (or in the display mode a developer has specified in their web manifest). 
 1. As the user navigates from a.news.com to b.news.com to news-is-awesome.com, the browser should stay in "full screen". 

Today, the Web Manifest spec only allows the "scope" of a web app to behave similarly to a Service Worker scope - as such, it is limited to same origin. This is not acceptable in *a lot* of cases, because it is common for a single "app" to span multiple domains when navigated. 

As such, we are asking: could the web manifest contain a list of origins that define the "scope" of the application: that is, so long as the user stays within this set of URLs, they are "within the scope of the web application" - but once they leave that scope, whatever is defined in the web manifest no longer applies. 

For example, going from news.com to google.com would cause the browser to leave full screen mode and return to normal browser mode... but hitting the back button might return the user to fullscreen mode (as they've again entered into the scope of the web app). 

Hope that helps! 

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/issues/412#issuecomment-160844630

Received on Tuesday, 1 December 2015 03:55:48 UTC