git.iko.soy/typeable/nixpkgs
on master help sign in
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 ...

commit69e3817eb64c0621703be05cb1bcfcc76d97dd77 authorJoachim Fasting <joachifm@fastmail.fm> dateFri 15 Sep 2017, 11:41 (9 years ago) parent1df6cf5
1 file changed+8
pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix+8
pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix+8
@@ -44,6 +44,10 @@
4444, hicolor_icon_theme
4545, shared_mime_info
4646
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+
4751# Extra preferences
4852, extraPrefs ? ""
4953}:
@@ -210,6 +214,10 @@ stdenv.mkDerivation rec {
210214 lockPref("extensions.torlauncher.control_port_use_ipc", true);
211215 lockPref("extensions.torlauncher.socks_port_use_ipc", true);
212216
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"});
220+
213221 ${optionalString (extraPrefs != "") ''
214222 ${extraPrefs}
215223 ''}