PointerEvent.persistentDeviceId maybe leaks pen inputs with RFP
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr128 | --- | unaffected |
| firefox-esr140 | --- | unaffected |
| firefox142 | --- | wontfix |
| firefox143 | --- | wontfix |
| firefox144 | --- | wontfix |
| firefox145 | --- | wontfix |
| firefox146 | --- | fixed |
People
(Reporter: pierov, Assigned: pierov)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
According to the code, persistentDeviceId will be 1 for mouse events, 0 otherwise.
I wonder if this could leak pen events, for example. However, I won't access to my drawing table for a while to check if it's actually the case.
FWIW, other methods have a check on ShouldResistFingerprinting first.
| Assignee | ||
Comment 1•1 year ago
|
||
Notice that if pointerType isn't spoofed, this is just equivalency.
So, if the idea is that we don't want to spoof the type, this can be closed.
Comment 2•1 year ago
|
||
Set release status flags based on info from the regressing bug 1968400
:smaug, since you are the author of the regressor, bug 1968400, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Currently, it returns only 0 or 1. We haven't implemented it under widget/ to make web apps possible to distinguish physical pens.
Updated•1 year ago
|
| Assignee | ||
Comment 4•1 year ago
|
||
I've managed to have this tested.
Under RFP, we report both the actual pointer type and persistentDeviceId consistently.
However, everything about pens (angles, pressure, etc...) is spoofed.
So, I think it'd make sense to disguise pens as mouse on desktop.
I would say it'd make sense to disguise both pens and mice as touch on Android, but this would be detectable, as touch will also trigger touchstart, touchend and touchmove events, whereas mice currently don't do it (I tested MDN's example with a bluetooth mouse on my phone).
I didn't think of testing that example also on desktop, maybe I'll be able to do it later.
Updated•1 year ago
|
| Assignee | ||
Comment 5•11 months ago
|
||
The pen features (pressure, angles, etc...) are already spoofed.
However, we still tell that the input comes from a pen.
At this point, we can pretend it came from a mouse.
Updated•11 months ago
|
Comment 6•10 months ago
|
||
Landing for pierov.
Backed out for causing perma failures @test_pointer_event.html.
| Assignee | ||
Comment 10•10 months ago
|
||
Sent new revisions, but tjr is currently out, so I think this will have to wait a little bit.
FWIW, from the try build everything seems fine now to me: https://treeherder.mozilla.org/jobs?repo=try&revision=9d511d1287b9cfe5ae45252e425ecebdc7246ce2
Comment 11•10 months ago
|
||
Comment 12•10 months ago
|
||
| bugherder | ||
Comment 13•10 months ago
|
||
Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.
Comment 14•10 months ago
|
||
The patch landed in nightly and beta is affected.
:pierov, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox145towontfix.
For more information, please visit BugBot documentation.
Updated•10 months ago
|
| Assignee | ||
Updated•10 months ago
|
Updated•10 months ago
|
Description
•