-
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
Ensure predicted events only use input from the current partition #518
Comments
the spec itself does not define nor mandate what algorithms (on the underlying platform OS, or the user agent) are used - but unless I'm mistaken, the prediction is purely based on the previous movement leading up to the pointer event itself, so does a speculative "if the user continues on the same trajectory at the same speed, the next likely position they'll reach is this". maybe the "past points" wording was not clear enough - I'll see if this can be explained a bit better. |
Thanks @patrickhlauke, you posted something very similar to what I have drafted from a slightly different perspective. So posting anyway: Does it help that the spec mentions two inputs to the prediction mechanism both of which are already "mostly exposed" to the Web?
The past points are known to the site already. The speed/trajectory is mostly a function of the known rate of input events but I can see that the (unknown) shape of the stroke could have some role in the prediction too. The shape may not be visible to the hardware or the browser predicting the next points, and even if it is visible, it seems to have a lighter role than the other already-known inputs. |
One kind of prediction I'd be worried about would be if the OS or browser learns from the full history of a user's behavior that their pen acceleration curve usually maxes out at 34.52px/s and has a particular logistic shape, and so predicts that shape of acceleration every time the user starts drawing on a page. It'll still be based on "past points", but it'll incorporate too many of them and so be identifying too quickly. |
From https://www.w3.org/TR/2024/WD-pointerevents3-20240318/#predicted-events:
If the prediction is based on the user's behavior on other sites, or on the same site across storage clearing, it could let sites join identities they shouldn't be able to join. Would it be possible to restrict the possible source data for generating predictions to the current partition?
The text was updated successfully, but these errors were encountered: