WICG / manifest-incubations

Before install prompt API for installing web applications
https://wicg.github.io/manifest-incubations/
Other
99 stars 29 forks source link

Scope extensions explainer: accept multiple scope values to allow configuration for different platforms #37

Open LuHuangMSFT opened 3 years ago

LuHuangMSFT commented 3 years ago

scope_extensions should accept multiple scope values and have the client pick the first that's compatible with the current platform.

LuHuangMSFT commented 3 years ago

@alancutter

alancutter commented 3 years ago

From an external discussion:

I think scope extensions will need to grapple with the technical reality that different platforms have different capabilities for URL matching. We can either: A) Attempt to perform lossy conversions on the client side. B) Restrict the spec to the lowest common denominator. C) Accept multiple scope values and have the client pick the first that's compatible with the current platform.

I would like to see us do C as it lets developers handle less capable platforms themselves instead of A; us having to guess what lossy conversion will work for everyone or B; sites losing out on available capabilities.

alancutter commented 3 years ago

We can follow display_override's example; accept a list and use the first value that's supported.