Commit c5bc2f73 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃 Committed by brizental
Browse files

fixup! Firefox preference overrides.

BB 44062: Enable touch events on Windows and Android.

Auto-detection makes some properties available on the global scope only
when touch support is actually available, but this introduces entorpy.
Let's force touch enabled in Windows+Android and disable it elsewhere.
This improves consistency with the spoofed number of touch points.
parent afd03e1a
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -438,9 +438,12 @@ pref("dom.webmidi.enabled", false); // Bug 41398: Disable Web MIDI API
// randomized IDs when this pref is true).
// Defense-in-depth (already the default value) from Firefox 119 or 120.
pref("media.devices.enumerate.legacy.enabled", false);
// Bug 10286: Always disable Touch API.
// We might need to deepen this topic, see tor-browser#42069.
// Touch events (tor-browser#10286, tor-browser#42069, tor-browser#44062)
#if defined(XP_WIN) || defined(ANDROID)
pref("dom.w3c_touch_events.enabled", 1);
#else
pref("dom.w3c_touch_events.enabled", 0);
#endif
#ifndef ANDROID
// Bug 42138: Disable touch-based overscroll UX
pref("apz.overscroll.enabled", false);