-
Notifications
You must be signed in to change notification settings - Fork 30
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: Allow multiple same-origin scopes as well #40
Comments
This overlaps heavily with the |
Yes, that's correct. I don't think there's a need for a separate In the first example I gave the idea of the In the second example I gave, my thinking with the The second example is meant to show how the |
Moved from WICG/pwa-url-handler#29 (comment) since it's probably more relevant here.
@LuHuangMSFT Thank you for pinging me regarding this proposal.
I'd suggest that any extension of the scope member should include allowing navigation scope to include multiple paths inside the same origin in addition to extending it to another origin.
In an ideal world I'd like to extend the scope member to support an object instead of a string, which describes a more complex navigation scope for an app.
That could include the ability to:
For cross-origin scope, this would probably require some kind of origin association resource hosted at the other origin as you have suggested.
Unfortunately re-using the existing scope member may cause backwards compatibility issues. Another (more verbose) way of describing this could be a list of scope objects in a
scopes
member which define:type
- "include" or "exclude"href
- absolute, relative or cross-origincapture
- whether the app should capture navigations within this scopeThe text was updated successfully, but these errors were encountered: