-
Notifications
You must be signed in to change notification settings - Fork 34
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
Limit the precision of floating point event fields #517
Comments
Looks like we should be fine with a 0.01 precision in all of these We don't need to "downgrade" the IDL types to |
I think |
We don't want to change any idl types for this. Just need to document that when dealing with trusted events, the precision of all the float and double properties should be limited. Need to be just careful with the wording, since the limit is on the "native" precision level. |
@smaug---- I agree, I'd be happy with something non-specific. A similar example is the precision of times in the web-animations spec: https://www.w3.org/TR/web-animations-1/#precision-of-time-values I think it might be good to say something for the different fields, e.g. something like this:
|
That sounds reasonable to me. |
There's a history of factory calibration information being used to fingerprint individual devices. I haven't investigated whether this is possible on common pointing devices, but as a precaution, would it make sense to establish a normative limit on the precision of the fields in pointer events, similar to what was done for deviceorientation and accelerometer? See w3c/deviceorientation#86, which limited angle measurements to 0.1 degrees.
The text was updated successfully, but these errors were encountered: