Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LuHuangMSFT opened this issue Sep 21, 2021 · 3 comments
Labels
scope-extensions https://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-explainer.md

Comments

@LuHuangMSFT
Copy link
Collaborator

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

@LuHuangMSFT LuHuangMSFT added the scope-extensions https://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-explainer.md label Sep 21, 2021
@LuHuangMSFT
Copy link
Collaborator Author

@alancutter

@alancutter
Copy link
Collaborator

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope-extensions https://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-explainer.md
Projects
None yet
Development

No branches or pull requests

2 participants