By way of follow up... On Wed, Feb 12, 2014 at 2:08 PM, Ben Francis <[email protected]> wrote:
> *For a given URL, how should we determine whether it belongs to an app or > should be opened in a browser window?* > It seems that we have gradually been removing assumptions in the system in Firefox OS in preparation for allowing multiple apps per origin, so there is currently no reliable way to determine what app a URL belongs to given only the URL. Therefore the conclusion we reached was to treat a URL visited from an app window as a different "place" in the places database to the same URL visited in a browser window. Clicking a history result for a URL visited in an app window will open in a new or existing app window with the same manifest URL, clicking a history result for the same URL visited in a browser window will open in a browser window. > *Should we open all off-origin hyperlinks from an app in a new browser > window instead of the current app window?* > A problem with the above is that it can result in duplicate history entries of the same URL visited inside and outside an app window. In order to not link unrelated web browsing to an app's history and to reduce the number of duplicate places with the same URL but separate frecency scores, we are going to experiment with opening all hyperlinks to off-origin URLs from apps outside of the app window in Firefox OS, tracked by bug 972320. As a side note, as I understand it it is currently not possible to create a hyperlink from one privileged app to another privileged app and make use of any permissions granted to that app. This is because permissions are only granted if the correct manifest URL is set in the mozapp attribute of the iframe and this attribute only gets set when launching a new app. Although Web Activities go some way to addressing these types of use cases, this does seem to break the fundamental linkability of the web and seems like something we should fix. Ben _______________________________________________ dev-webapps mailing list [email protected] https://lists.mozilla.org/listinfo/dev-webapps
