This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28675 - What is a globally unique identifier?
Summary: What is a globally unique identifier?
Status: RESOLVED MOVED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-22 12:37 UTC by Simon Sapin
Modified: 2016-03-24 10:14 UTC (History)
4 users (show)

See Also:


Attachments

Description Simon Sapin 2015-05-22 12:37:47 UTC
The term "globally unique identifier" is used in HTML and URL:

https://html.spec.whatwg.org/multipage/browsers.html#origin
https://url.spec.whatwg.org/#origin

but is not defined. The submitted of a patch implementing this in Servo assumed it is a UUID, a randomly-generated string like "de305d54-75b4-431b-adb2-eb6b9e546014", but that seems wrong to me.

HTML also defines:

> Opaque identifiers
> Internal values, with no serialisation, for which the only meaningful operation is testing for equality.

Are globally unique identifiers the same as opaque identifiers? Either way, I’d like the spec to clarify this.

Bug 26722 seems relevant, but I don’t understand its resolution.

See also:
https://github.com/whatwg/url/issues/21
https://github.com/servo/rust-url/pull/111
Comment 1 Anne 2016-03-16 14:43:50 UTC
An opaque identifier is just some kind of identifier. It's not exposed to JavaScript, so what exactly it is doesn't really matter.

Same for globally unique identifier. What matters is that it's an identifier that's globally unique, but since it's not exposed its format does not matter. It's only used for comparison purposes here and there.

I can't really figure out a way how to explain that succinctly. Ideas?
Comment 2 Anne 2016-03-24 10:14:06 UTC
I think the latest wording in https://github.com/whatwg/html/pull/925 makes this sufficiently clear. I'll update URL once that PR lands.