Pier Angelo Vendrame pushed to branch tor-browser-140.1.0esr-15.0-1 at The Tor
Project / Applications / Tor Browser
Commits:
fbc1f480 by Pier Angelo Vendrame at 2025-08-07T11:39:52+02:00
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.
- - - - -
2 changed files:
- browser/app/profile/001-base-profile.js
- mobile/android/app/000-tor-browser-android.js
Changes:
=====================================
browser/app/profile/001-base-profile.js
=====================================
@@ -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);
=====================================
mobile/android/app/000-tor-browser-android.js
=====================================
@@ -23,9 +23,6 @@ pref("privacy.clearOnShutdown.siteSettings", true);
// controls if we want camera support
pref("media.realtime_decoder.enabled", false);
-// Enable touch events on Android (highlighting text, etc)
-pref("dom.w3c_touch_events.enabled", 2);
-
// No HLS support for now due to browser freezing, see: #29859.
pref("media.hls.enabled", false);
View it on GitLab:
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/fbc1f4804fc045080277c830a2c37d6c7aca29c1
--
View it on GitLab:
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/fbc1f4804fc045080277c830a2c37d6c7aca29c1
You're receiving this email because of your account on gitlab.torproject.org.
_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]