Ready for Trial: Web app scope extensions

146 views
Skip to first unread message

Lu Huang

unread,
May 19, 2023, 7:03:05 PM5/19/23
to blin...@chromium.org, Diego Gonzalez, Hassan Talat, Howard Wolosky, Alan Cutter

Contact emails

lu...@microsoft.comluig...@microsoft.comalanc...@chromium.org


Explainer

https://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-explainer.md


Specification

TBD


Summary

Adds a "scope_extensions" app manifest member that enables web apps to extend their scope to other origins.

 

Example usage:

{

  "id": "",

  "name": "Example",

  "display": "standalone",

  "start_url": "/index.html",

  "scope_extensions": [

    {"origin": https://*.example.com},

    {"origin": https://example.co.uk},

    {"origin": https://*.example.co.uk}

  ]

}

 

This allows sites that control multiple subdomains and top level domains to behave as one contiguous web app.

 

Requires listed origins to confirm association with the web app using a .well-known/web-app-origin-association configuration file.

 

{

  "web_apps" : [

    {"web_app_identity": https://sample-app.com/}

  ]

}

Design docs
https://docs.google.com/document/d/1-idhx8heajbPYl3cdXFVCjpIuf96cRa_DrRk6147ELI/edit?usp=sharing

Sample
Scope Extensions Demo App (htalat.repl.co)
Web app scope extensions - YouTube

Blink component

UI>Browser>WebAppInstalls


TAG review

Not yet requested.


TAG review status




Risks

 

Interoperability and Compatibility


Gecko: No signal

WebKit: No signal

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

No.


Goals for experimentation

Learn about the experience of web app developers and how this API fulfills their needs.


Ongoing technical constraints

None.


Debuggability




Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

No. This feature will not be supported on Android platforms as web apps on Android have a different implementation of identity.


Is this feature fully tested by web-platform-tests?

No.


Flag name

about://flags/#enable-desktop-pwas-scope-extensions


Requires code in //chrome?

False


Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1250011


Estimated milestones

DevTrial on desktop 115




Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5746537956114432


Links to previous Intent discussions

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/-iySPmw8o34/m/oLgrCUQXAQAJ

This intent message was generated by Chrome Platform Status.

 

Reply all
Reply to author
Forward
0 new messages