Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid suggesting the empty string for navigator.platform
navigator.platform was permitted to return the empty string due to a privacy-motivated spec change in ecefa6e. Since 2008, the understanding of changing things like this for privacy has evolved from returning special privacy values to returning a value that is already commonly returned for non-privacy reasons. Therefore, change the spec not to say "the empty string" but to permit returning a string commonly returned on another platform. Additionally, change the examples to be from the set of values given at https://www.chromium.org/updates/ua-reduction/ to avoid suggesting more-identifying and potentially-less-compatible values. But, for now, avoid actually constraining the permitted values to a reduced set. Further work on constraining these values is tracked mostly in https://github.com/whatwg/compat; see especially whatwg/compat#174.
- Loading branch information