Commit 4327564d authored by intrigeri's avatar intrigeri
Browse files

Disable uBlock lists auto-update (refs: #15702).

We've always disabled this feature because it calls home and generates
network traffic every time one starts Tails and then Tor Browser.
But 106a5129 did not port our settings
customization to the new uBlock settings storage format.

Implementation-wise, I've found no better way of changing the default
value of this setting than patching the extension code: it's not managed
as a regular Firefox pref and the only other option would be to include
a hard-coded
/etc/tor-browser/profile/browser-extension-data/uBlock0@raymondhill.net/storage.js,
which feels more bothersome to maintain than this patch.
parent a73a8d86
......@@ -264,6 +264,7 @@ install_debian_extensions() {
apt-get install --yes "${@}"
ln -s /usr/share/webext/ublock-origin/ \
"${destination}"/'uBlock0@raymondhill.net'
patch -p1 < /usr/share/tails/uBlock-disable-autoUpdate.diff
}
create_default_profile() {
......
--- a/usr/share/webext/ublock-origin/js/background.js 2018-08-10 06:18:58.000000000 +0000
+++ b/usr/share/webext/ublock-origin/js/background.js 2018-08-13 07:39:40.029408152 +0000
@@ -74,7 +74,7 @@
userSettings: {
advancedUserEnabled: false,
alwaysDetachLogger: true,
- autoUpdate: true,
+ autoUpdate: false,
cloudStorageEnabled: false,
collapseBlocked: true,
colorBlindFriendly: false,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment