Tor Browser for Android crashes on Dark mode toggling
Summary
Tor browser for Android would crash on dark mode enable/disable. This behavior has been here for a few months. (Sorry for reporting it so late, I didn't know where to report it)
Program version
14.0.6 (128.0.7esr)
14.0.7 (128.8.0esr)
Tor Browser for Android alpha 14.5a4 (128.8.0esr) DOES NOT exhibit this behavior
Steps to reproduce:
- Open Tor Browser for Android. No need to connect to Tor network (but the behavior remains the same if you do).
- (Optional) Switch Tor Browser to background.
- Enable or disable dark mode in Android quick tile or settings.
What is the current bug behavior?
Tor Browser crashes.
This behavior persists even when Settings/Customize/Theme is set to light or dark (thus the browser should no longer detect what mode Android system is in).
If the Tor Browser is switched to background before dark mode is toggled, when the app is waken from the background after toggling, it would behave as if all tabs has been closed, but opening any address results in "Proxy server refused connection" error, it seems the Tor daemon is down.
What is the expected behavior?
The Tor Browser remains operational.
Environment
Which operating system are you using?
Android 13
Android 15 LineageOS 22.1 build March 12, 2025
Android 15 GrapheneOS build 2025031400
Which installation method did you use?
GuardianProject's F-Droid repository
Side note
Android battery saver also triggers this bug because it enables dark mode until the battery saver is turned off (either manually or the device connected to external charger).