Closed Bug 1809776 Opened 3 years ago Closed 3 years ago

Cut GamePads over to Fine-Grained RFP Control

Categories

(Core :: DOM: Device Interfaces, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: tjr, Assigned: tjr)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Almost all of GamePadManager.cpp uses the new ShouldRFP functions on the Window object, this lets you exempt specific domains from RFP. However right here we check the general preference. AIUI this check in turn means a ton of other behavior will never happen, because we never Add any Gamepads, so the Gamepad Manager never even has any gamepads to do anything with.

So while it would be easy to remove that check, and then add a (redundant) listeners[i]->ShouldResistFingerprinting() a little further down - I'll probably need to audit all of the GamePad code to ensure that nothing somewhere else (like FireButtonEvent to pick one at random) will cause a GamePad event to get dispatched to a window where RFP is enabled.

No longer depends on: 1809775

We only add listeners (windows) that don't resist fingerprinting: https://searchfox.org/mozilla-central/rev/7426a35738cd542b9488c7b67f4f6d21edfeda0a/dom/gamepad/GamepadManager.cpp#147-149. I think that means all other checks are superfluous.

Pushed by tritter@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f0c8af811fae Cut Gamepads over to fine-grained RFP control r=cmartin,tschuster
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: