nixpkgs/pkgs/applications/networking/browsers
Joachim Fasting ecd0e1a2c7
torbrowser: reduce risk of stale Nix store references
This patch restructures the expression and wrapper to minimize Nix store
references captured by the user's state directory.

The previous version would write lots of references to the Nix store into
the user's state directory, resulting in synchronization issues between
the Store and the local state directory.  At best, this would cause TBB to
stop working when the version used to instantiate the local state was
garbage collected; at worst, a user would continue to use the old version
even after an upgrade.

To solve the issue, hard-code as much as possible at the Store side and
minimize the amount of stuff being copied into the local state dir.
Currently, only a few files generated at firefox startup and fontconfig
cache files end up capturing store paths; these files are simply removed
upon every startup.  Otherwise, no capture should occur and the user
should always be using the TBB associated with the tor-browser wrapper
script.

To check for stale Store paths, do
   `grep -Ero '/nix/store/[^/]+' ~/.local/share/tor-browser`
This command should *never* return any other store path than the one
associated with the current tor-browser wrapper script, even after an
update (assuming you've run tor-browser at least once after updating).
Deviations from this general rule are considered bugs from now on.

Note that no attempt has been made to support pluggable transports; they
are still broken with this patch (to be fixed in a follow-up patch).

User visible changes:
- Wrapper retains only environment variables required for TBB to work
- pulseaudioSupport can be toggled independently of mediaSupport (the
  latter weakly implies the former).
- Store local state under $TBB_HOME.  Defaults to $XDG_DATA_HOME/tor-browser
- Stop obnoxious first-run stuff (NoScript redirect, in particular)
- Set desktop item GenericName to Web Browser

Some minor enhancements:
- Disable Hydra builds
- Specify system -> source mapping to make it easier to
  extend supported platforms.
2017-03-25 15:59:18 +01:00
..
arora
chromium chromium: 57.0.2987.98 -> 57.0.2987.110 2017-03-22 01:17:17 +01:00
conkeror
dillo
dwb
elinks
firefox Merge pull request #23989 from rnhmjoj/firefox-alsa 2017-03-20 14:59:32 +01:00
firefox-bin firefox, firefox-bin: 52.0 -> 52.0.1 2017-03-18 09:36:12 +09:00
google-chrome chromium, google-chrome: add commandLineArgs 2017-01-05 18:19:44 +00:00
jumanji
links2 links2: build on all unix platforms 2017-03-14 18:55:52 +13:00
lynx lynx: 2.8.8rel.2 -> 2.8.9dev.11 2017-02-23 07:32:55 +08:00
midori
mozilla-plugins flashplayer: 24.0.0.221 -> 25.0.0.127 (#23889) 2017-03-14 16:02:08 +01:00
opera cups: split the $lib output 2017-03-12 18:36:30 +01:00
palemoon palemoon: 27.0.3 -> 27.1.1 2017-02-28 20:34:54 +01:00
qutebrowser qutebrowser: 0.9.1 -> 0.10.1 2017-03-14 20:19:25 +03:00
surf surf-webkit2: 2017-03-06 -> 2017-03-22 2017-03-25 11:58:30 +01:00
torbrowser torbrowser: reduce risk of stale Nix store references 2017-03-25 15:59:18 +01:00
uzbl
vimb
vimprobable2
vivaldi gst-plugins-base: align attrname with pkgname 2017-02-27 12:16:26 +01:00
w3m w3m: fix package name 2017-01-21 15:02:02 +02:00