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

UUID #153

Open
jakearchibald opened this issue Sep 25, 2017 · 5 comments
Open

UUID #153

jakearchibald opened this issue Sep 25, 2017 · 5 comments

Comments

@jakearchibald
Copy link
Contributor

UUIDs seem to be the best way to express equality between instances of a concept, especially if that data lives between browser restarts.

Is this worth having in infra?

@annevk
Copy link
Member

annevk commented Sep 25, 2017

Yeah, it might be worth doing a survey to see where UUID is used as a primitive and what characteristics are assumed. And then define it and provide some guidance around it.

Service workers also expose it, right? And I think File API does too. Might be good to have serialization requirements too then.

@jakearchibald
Copy link
Contributor Author

Service worker uses https://html.spec.whatwg.org/multipage/webappapis.html#concept-environment-id and exposes it via https://w3c.github.io/ServiceWorker/#dom-client-id.

I'm looking to use it in background fetch to distinguish instances of https://wicg.github.io/background-fetch/#background-fetch-concept, but it won't be exposed.

@annevk
Copy link
Member

annevk commented Sep 25, 2017

https://w3c.github.io/FileAPI/#ABNFUUID has a whole ABNF. I wonder if that's actually implemented as such though.

@annevk
Copy link
Member

annevk commented Apr 29, 2021

mozilla/standards-positions#511 (comment) by @bcoe lists some more places. Perhaps that specification can become the central point of reference though.

@jakearchibald
Copy link
Contributor Author

Related: In the session history PR I'm introducing the idea of a unique internal value https://whatpr.org/html/6315/common-microsyntaxes.html#unique-values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants