WICG / cookie-store

Asynchronous access to cookies from JavaScript
https://wicg.github.io/cookie-store/
Apache License 2.0
143 stars 35 forks source link

Is `matchType` necessary? #128

Closed mikewest closed 4 years ago

mikewest commented 4 years ago

The explainer presents the Google+ API as a use case for the matchType: 'starts-with' option. It's not clear to me that that's something we can reasonably point to today. If we dropped it from CookieStoreGetOptions, we could simplify the Window exposure by dropping the CookieStoreGetOptions variants of get() and getAll() (as url is only meaningful in Service Workers).

ayuishii commented 4 years ago

Thanks for the feedback @mikewest ! I think this would be a good candidate for getting feedback and observing how this is used during Origin Trial. I can put in place some metrics to do so. Does this sound ok?

domenic commented 4 years ago

Where did the origin trial feedback end up in this regard?

ayuishii commented 4 years ago

Looking through our metrics and connecting with our partner, looks like we don't have a strong case to keep matchType. I've created a bug to track removal and will update the spec / explainer on this change.