Skip to content
Snippets Groups Projects
Verified Commit 7259b166 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
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 fd1cb0c8
No related merge requests found
Pipeline #300617 passed
......@@ -443,9 +443,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);
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment