A partial archive of discourse.wicg.io as of Saturday February 24, 2024.

[Proposal] Web App Scope Extensions

LuHuang
2021-09-16

Hello WICG,

We would like to propose a new scope_extensions web app manifest member that enables web apps to extend their scope to other origins.

Problem

Developers want to create a web app that includes content from more than one origin. They are unable to do so according the current web app manifest specification (using the scope member).

Websites commonly structure their content using different sub-domains. An example of this is to structure a username or organization’s name as a sub-domain (eg. jsmith.example.com). Another example of this is using a sub-domain that indicates language or locale (eg. en.example.org).

It is also common for websites to use different TLD for users in different geo. locations (eg. .fr, .de, .cn).

It is also common for websites to navigate to third-party content (such as for authentication) before bringing them back.

In the above scenarios, a similar web app cannot declare a scope to include content on the other origins. An app window that navigates to content out of scope should apply a different UI treatment.

Proposal

We propose a new web app manifest field scope_extensions and the use of a previously published association file format to enable web apps to extend their scope to other origins.

More details can be found in this explainer .

Thank you for your consideration.