lol

tor-browser-bundle-bin: optionally disable multiprocess support

Multiprocess tabs always crash, as first reported by the issue mentioned
below. It is now consistently reproducible both on NixOS and non-NixOS
for me, so I've decided to add a toggle to conveniently disable
multiprocess support as a work-around.

Closes https://github.com/NixOS/nixpkgs/issues/27759 but does
not really fix the underlying problem ...

+8
+8
pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix
··· 44 44 , hicolor_icon_theme 45 45 , shared_mime_info 46 46 47 + # Whether to disable multiprocess support to work around crashing tabs 48 + # TODO: fix the underlying problem instead of this terrible work-around 49 + , disableContentSandbox ? true 50 + 47 51 # Extra preferences 48 52 , extraPrefs ? "" 49 53 }: ··· 209 213 // Defaults to creating $TBB_HOME/TorBrowser/Data/Tor/{socks,control}.socket 210 214 lockPref("extensions.torlauncher.control_port_use_ipc", true); 211 215 lockPref("extensions.torlauncher.socks_port_use_ipc", true); 216 + 217 + // Optionally disable multiprocess support. We always set this to ensure that 218 + // toggling the pref takes effect. 219 + lockPref("browser.tabs.remote.autostart.2", ${if disableContentSandbox then "false" else "true"}); 212 220 213 221 ${optionalString (extraPrefs != "") '' 214 222 ${extraPrefs}