[webrtc-pc] Add more specificity on the format of RTCStats.ids (#2319)

henbos has just created a new issue for https://github.com/w3c/webrtc-pc:

== Add more specificity on the format of RTCStats.ids ==
Even with unpredictable IDs ([PR](https://github.com/w3c/webrtc-pc/pull/2304)), the spec has nothing to say about which symbols are or are not allowed or what the length of the string may be. Problems:
- This could potentially make it difficult to store stats objects in a database. Weird symbols or long strings.
- If you want to make a dashboard for stats it would be nice to know how long the ids can be for displayability.
- If different user agent's have characteristically different ids this could become a silly API for determining user agent/some amount of fingerprinting.

Proposal:
- Only alphanumerical symbols. (Any reason to include dashes?)
- Always 32 characters long.

One could go even further, but I don't think it's worth over-specifying this since we still want "guidelines" and not a specific algorithm for how to generate the ids, I assume.

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2319 using your GitHub account

Received on Thursday, 3 October 2019 11:33:03 UTC