Skip to content

Commit 78a14b9

Browse files
committed
Re-organise runtime flags
I don't like doing this too often, as it's quite disruptive. But overall we have reduced the number of flag files by five, and made things simpler. The no-ipv6-probe and cypher-suit-blacklist files are merged into a new network file. Several other network-related flags have been moved from other files to this one, as well as a new disable-quic flag. The following runtime flag files have been merged into miscellaneous :- disable-setuid-sandbox load-extensions ng-shape-cache Flags to disable autoplay features, set disk cache options and disable breakpad are also added to the miscellaneous file. The anti-phishing and anti-tracking files have been merged into a new anti-phish-track file. A new ui-enable-shared-image-cache-for-gpu flag (disabled by default) is added to the gpu file.
1 parent 49865f3 commit 78a14b9

File tree

11 files changed

+54
-46
lines changed

11 files changed

+54
-46
lines changed

debian/etc/chromium.d/anti-tracking renamed to debian/etc/chromium.d/anti-phish-track

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
# Uncomment to enable anti-tracking mitigations
2-
# Note: this could potentially make you stand out even more from the crowd.
1+
### Note: you could potentially 'stand out from the crowd'
2+
### by enabling some of these options
3+
4+
# Convert Internationalized Domain Names to punycode (anti-phishing)
5+
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --force-punycode-hostnames"
36

47
# Disable pinging
58
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-pings"
@@ -10,10 +13,6 @@ export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --no-pings"
1013
# Disable automatic search engine scraping from webpages
1114
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-search-engine-collection"
1215

13-
# Disables GREASE for TLS (seems safe enough to set by default)
14-
# See https://github.com/ungoogled-software/ungoogled-chromium/issues/783 for more details
15-
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-tls-grease"
16-
1716
# Disable frequently-visited sites in the new tab page
1817
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-top-sites"
1918

@@ -25,16 +24,6 @@ export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-tls-grease"
2524
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --fingerprinting-canvas-measuretext-noise"
2625
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --fingerprinting-client-rects-noise"
2726

28-
# Limit referrer headers (choices: MinimalReferrers, NoCrossOriginReferrers, NoReferrers)
29-
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-features=MinimalReferrers"
30-
31-
# WebRTC IP privacy
32-
# The builtin default (via an UC patch) is disable_non_proxied_udp)
33-
# Choices: default, default_public_and_private_interfaces,
34-
# default_public_interface_only or disable_non_proxied_udp
35-
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --webrtc-ip-handling-policy=disable_non_proxied_udp"
36-
37-
3827
# Disable OpenGL ES 3 APIs (prevents gpu info leakage; will also disable WebGL2)
3928
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-es3-apis"
4029

debian/etc/chromium.d/anti-phishing

Lines changed: 0 additions & 4 deletions
This file was deleted.

debian/etc/chromium.d/cypher-suit-blacklist

Lines changed: 0 additions & 3 deletions
This file was deleted.

debian/etc/chromium.d/disable-setuid-sandbox

Lines changed: 0 additions & 3 deletions
This file was deleted.

debian/etc/chromium.d/gpu-options

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@ export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-zero-copy"
2626
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --num-raster-threads=2"
2727

2828

29+
# Enables shared GPUImageDecodeCache for UI if gpu rasterization is enabled
30+
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --ui-enable-shared-image-cache-for-gpu"
31+
2932
# This might help with eg google streetview on very old GPUs
3033
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-accelerated-2d-canvas"

debian/etc/chromium.d/load-extensions

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
1-
# Valid values are 6 and 15
2-
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --max-connections-per-host=15"
1+
# Disable setuid sandbox (should be used for debugging purposes onlu)
2+
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-setuid-sandbox"
33

44
# Don't display any warnings about not being the default browser
55
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --no-default-browser-check"
66

7+
# Disable breakpad (related to crash reporting)
8+
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-breakpad"
9+
710
# Do not hide any extensions in the about:extensions dialog
811
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --show-component-extension-options"
912

13+
# Comment to disable NGShapeCache
14+
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-features=LayoutNGShapeCache"
15+
16+
# Disable Autoplay features
17+
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-features=PreloadMediaEngagementData,AutoplayIgnoreWebAudio,MediaEngagementBypassAutoplayPolicies"
18+
19+
# Disk cache options (the cache size is in bytes)
20+
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disk-cache-dir=/tmp/example"
21+
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disk-cache-size=0"
22+
1023
# For those on slow machines
1124
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-low-end-device-mode"
1225

13-
# Disable the builtin media router
14-
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --media-router=0"
26+
# Uncomment to load all of the extensions installed to /usr/share/chromium/extensions
27+
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --load-extension=$(ls -dm /usr/share/chromium/extensions/* 2>/dev/null | tr -d '\n')"

debian/etc/chromium.d/network

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Disables GREASE for TLS (See UC issue #783 for more info)
2+
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-tls-grease"
3+
4+
# Valid values are 6 and 15
5+
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --max-connections-per-host=15"
6+
7+
# Disable probing for ipv6
8+
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-features=SetIpv6ProbeFalse"
9+
10+
# Disable quic (https://sec-consult.com/blog/detail/better-dont-be-too-quick/)
11+
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-quic"
12+
13+
# Limit referrer headers (choices: MinimalReferrers, NoCrossOriginReferrers, NoReferrers)
14+
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-features=MinimalReferrers"
15+
16+
# Disable weak cyphers (could break some websites)
17+
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --cipher-suite-blacklist=0x000a,0x009c,0x009d,0x002f,0x0035"
18+
19+
# WebRTC IP privacy
20+
# - The builtin UC default ip handling policy is disable_non_proxied_udp
21+
# - Choices: default, default_public_and_private_interfaces,
22+
# default_public_interface_only or disable_non_proxied_udp
23+
#export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --webrtc-ip-handling-policy=default_public_interface_only"
24+
25+
# Disable the builtin media router
26+
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --media-router=0"

debian/etc/chromium.d/ng-shape-cache

Lines changed: 0 additions & 3 deletions
This file was deleted.

debian/etc/chromium.d/no-ipv6-probe

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)