w3c / device-posture

Device Posture API
https://www.w3.org/TR/device-posture/
Other
33 stars 21 forks source link

Clarify that `null` is never exposed to the page #152

Closed pes10k closed 4 months ago

pes10k commented 4 months ago

This issue is being filed as part of the PING review requested here https://github.com/w3cping/privacy-request/issues/136

The current text notes that there is a null slot on the document interface. However, the security and privacy considerations section notes that the only possible values are "continuous" and "folded", and that user agents should return the former by default. This seems (at least on first read) as contradictory and at least potentially confusing

From the discussion on the PING call, my understanding is that there are no cases where the browser should return null to the page from this API (with the possible exception of WebDriver cases, though I dont understand why this is needed either; why not also return "continuous" in this case). Limiting the API to only two values is ideal from a privacy perspective to limit fingerprinting surface here.

rakuco commented 4 months ago

I think different concepts are being mixed up here:

We could add a note to the table defining [[PostureOverride]] stating that null is never exposed to script, but I thought that was already clear given DevicePosture.type's IDL type.

(cc @JuhaVainio)