lists.torproject.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

tbb-commits

Thread Start a new thread
Threads by month
  • ----- 2026 -----
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2021 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2020 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2019 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2018 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2017 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2016 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2015 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2014 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
tbb-commits@lists.torproject.org

  • 1 participants
  • 21411 discussions
[Git][tpo/applications/tor-browser-build][maint-16.0] 5 commits: Bug 41910: Update Ubuntu version to 24.04.5
by boklm (@boklm) 16 Nov '26

16 Nov '26
boklm pushed to branch maint-16.0 at The Tor Project / Applications / tor-browser-build Commits: 907bb5e5 by Nicolas Vigier at 2026-11-16T15:00:39+01:00 Bug 41910: Update Ubuntu version to 24.04.5 Updated checksum taken from: https://cdimage.ubuntu.com/ubuntu-base/releases/24.04.5/release/SHA256SUMS https://cdimage.ubuntu.com/ubuntu-base/releases/24.04.5/release/SHA256SUMS.… - - - - - 7e94ecaf by Nicolas Vigier at 2026-11-16T15:00:45+01:00 Bug 41910: Install updated apt packages before using it apt has an update to fix some critical vulnerability: https://lists.debian.org/deity/2026/11/msg00005.html Since Ubuntu images containing the fix are not yet available, we download and install updated apt packages before using it. - - - - - 1099d56a by Nicolas Vigier at 2026-11-16T15:00:54+01:00 Bug 41910: Update minimal apt version check in debian images There is no apt update for stretch. However, according to: https://lists.debian.org/deity/2026/11/msg00005.html it should not be affected by the most critical issue, since we're not setting Acquire::Retries: This relies on the Acquire::Retries setting being set, which has only been the default since APT 2.3.2 - but many user scripts may have been using it in older releases. - - - - - bc92c344 by Nicolas Vigier at 2026-11-16T15:01:01+01:00 Bug 41910: Use apt https mirror for stretch - - - - - 614193ca by Nicolas Vigier at 2026-11-16T15:01:11+01:00 Bug 41910: Update version in projects/mmdebstrap-image for apt update This change will cause all containers to be rebuilt, except for stretch-based containers. To save space `make clean` can be run to remove all unused files from `out/`. Alternatively it's possible to remove the directories `out/container-image` and `out/mmdebstrap-image` before starting a new build. - - - - - 1 changed file: - projects/mmdebstrap-image/config Changes: ===================================== projects/mmdebstrap-image/config ===================================== @@ -1,19 +1,26 @@ # vim: filetype=yaml sw=2 filename: 'container-image_[% c("var/container/suite") %]-[% c("var/container/arch") %]-[% c("version") %].tar.[% c("compress_tar") %]' -version: 1 +version: 2 pkg_type: build compress_tar: zst container: use_container: 1 var: - ubuntu_version: 24.04.3 + ubuntu_version: 24.04.5 pre: | #!/bin/sh set -e rootdir=$(pwd) export DEBIAN_FRONTEND=noninteractive + + # Install critical apt security update before using it: + # https://lists.debian.org/deity/2026/11/msg00005.html + # We can remove this when a new Ubuntu image containing the fixed + # package is available + dpkg -i libapt-pkg6.0t64_2.8.4ubuntu0.1_amd64.deb apt_2.8.4ubuntu0.1_amd64.deb + apt-get update -y -q apt-get install -y -q debian-archive-keyring ubuntu-keyring mmdebstrap gnupg zstd @@ -38,20 +45,21 @@ targets: container: suite: stretch arch: amd64 + mmdebstrap_opt: --include=apt-transport-https,ca-certificates debian_mirror: > - "deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://archive.debian.org/debian-archive/debian/ stretch main" - "deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://archive.debian.org/debian-archive/debian-security/ stretch/updates main" + "deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://archive.debian.org/debian-archive/debian/ stretch main" + "deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://archive.debian.org/debian-archive/debian-security/ stretch/updates main" bookworm-amd64: var: - minimal_apt_version: 2.6.1 + minimal_apt_version: 2.6.2 container: suite: bookworm arch: amd64 trixie-amd64: var: - minimal_apt_version: 3.0.3 + minimal_apt_version: 3.0.4 container: suite: trixie arch: amd64 @@ -61,4 +69,10 @@ input_files: name: mmdebstrap - URL: 'https://cdimage.ubuntu.com/ubuntu-base/releases/[% c("var/ubuntu_version") %]/release/ubuntu-base-[% c("var/ubuntu_version") %]-base-amd64.tar.gz' filename: 'container-image_ubuntu-base-[% c("var/ubuntu_version") %]-base-amd64.tar.gz' - sha256sum: 6bc2cde3930ad088b3bb46fa45279e96d25bc3810f209850ecbe4722711874f9 + sha256sum: e77b6f10c2590cef872b33ee9f635a0e3fd1f57fb074c0e52b5c7f56147a0c86 + # https://packages.ubuntu.com/noble/amd64/apt/download + - URL: http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_2.8.4ubuntu0.1_amd64.… + sha256sum: ad2ea7f107f250ba88b0bfdba31812a341e3247589647aa2b03b9dc4e8abf8ed + # https://packages.ubuntu.com/noble/libapt-pkg6.0t64 + - URL: http://security.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg6.0t64_2.8.4ubu… + sha256sum: a50f3e68a793f90b05f44a4b5f2f59f3ec7687e39b5d8bbd1da44c84671fa3d6 View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/compare/… -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/compare/… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
[Git][tpo/applications/tor-browser-build][main] 5 commits: Bug 41910: Update Ubuntu version to 24.04.5
by boklm (@boklm) 16 Nov '26

16 Nov '26
boklm pushed to branch main at The Tor Project / Applications / tor-browser-build Commits: 19a1003e by Nicolas Vigier at 2026-11-16T14:57:38+01:00 Bug 41910: Update Ubuntu version to 24.04.5 Updated checksum taken from: https://cdimage.ubuntu.com/ubuntu-base/releases/24.04.5/release/SHA256SUMS https://cdimage.ubuntu.com/ubuntu-base/releases/24.04.5/release/SHA256SUMS.… - - - - - dd99071a by Nicolas Vigier at 2026-11-16T14:57:39+01:00 Bug 41910: Install updated apt packages before using it apt has an update to fix some critical vulnerability: https://lists.debian.org/deity/2026/11/msg00005.html Since Ubuntu images containing the fix are not yet available, we download and install updated apt packages before using it. - - - - - 22524ed9 by Nicolas Vigier at 2026-11-16T14:57:39+01:00 Bug 41910: Update minimal apt version check in debian images There is no apt update for stretch. However, according to: https://lists.debian.org/deity/2026/11/msg00005.html it should not be affected by the most critical issue, since we're not setting Acquire::Retries: This relies on the Acquire::Retries setting being set, which has only been the default since APT 2.3.2 - but many user scripts may have been using it in older releases. - - - - - 5eb052ae by Nicolas Vigier at 2026-11-16T14:57:39+01:00 Bug 41910: Use apt https mirror for stretch - - - - - 33efb406 by Nicolas Vigier at 2026-11-16T14:57:40+01:00 Bug 41910: Update version in projects/mmdebstrap-image for apt update This change will cause all containers to be rebuilt, except for stretch-based containers. To save space `make clean` can be run to remove all unused files from `out/`. Alternatively it's possible to remove the directories `out/container-image` and `out/mmdebstrap-image` before starting a new build. - - - - - 1 changed file: - projects/mmdebstrap-image/config Changes: ===================================== projects/mmdebstrap-image/config ===================================== @@ -1,19 +1,26 @@ # vim: filetype=yaml sw=2 filename: 'container-image_[% c("var/container/suite") %]-[% c("var/container/arch") %]-[% c("version") %].tar.[% c("compress_tar") %]' -version: 1 +version: 2 pkg_type: build compress_tar: zst container: use_container: 1 var: - ubuntu_version: 24.04.3 + ubuntu_version: 24.04.5 pre: | #!/bin/sh set -e rootdir=$(pwd) export DEBIAN_FRONTEND=noninteractive + + # Install critical apt security update before using it: + # https://lists.debian.org/deity/2026/11/msg00005.html + # We can remove this when a new Ubuntu image containing the fixed + # package is available + dpkg -i libapt-pkg6.0t64_2.8.4ubuntu0.1_amd64.deb apt_2.8.4ubuntu0.1_amd64.deb + apt-get update -y -q apt-get install -y -q debian-archive-keyring ubuntu-keyring mmdebstrap gnupg zstd @@ -38,20 +45,21 @@ targets: container: suite: stretch arch: amd64 + mmdebstrap_opt: --include=apt-transport-https,ca-certificates debian_mirror: > - "deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://archive.debian.org/debian-archive/debian/ stretch main" - "deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://archive.debian.org/debian-archive/debian-security/ stretch/updates main" + "deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://archive.debian.org/debian-archive/debian/ stretch main" + "deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://archive.debian.org/debian-archive/debian-security/ stretch/updates main" bookworm-amd64: var: - minimal_apt_version: 2.6.1 + minimal_apt_version: 2.6.2 container: suite: bookworm arch: amd64 trixie-amd64: var: - minimal_apt_version: 3.0.3 + minimal_apt_version: 3.0.4 container: suite: trixie arch: amd64 @@ -61,4 +69,10 @@ input_files: name: mmdebstrap - URL: 'https://cdimage.ubuntu.com/ubuntu-base/releases/[% c("var/ubuntu_version") %]/release/ubuntu-base-[% c("var/ubuntu_version") %]-base-amd64.tar.gz' filename: 'container-image_ubuntu-base-[% c("var/ubuntu_version") %]-base-amd64.tar.gz' - sha256sum: 6bc2cde3930ad088b3bb46fa45279e96d25bc3810f209850ecbe4722711874f9 + sha256sum: e77b6f10c2590cef872b33ee9f635a0e3fd1f57fb074c0e52b5c7f56147a0c86 + # https://packages.ubuntu.com/noble/amd64/apt/download + - URL: http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_2.8.4ubuntu0.1_amd64.… + sha256sum: ad2ea7f107f250ba88b0bfdba31812a341e3247589647aa2b03b9dc4e8abf8ed + # https://packages.ubuntu.com/noble/libapt-pkg6.0t64 + - URL: http://security.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg6.0t64_2.8.4ubu… + sha256sum: a50f3e68a793f90b05f44a4b5f2f59f3ec7687e39b5d8bbd1da44c84671fa3d6 View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/compare/… -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/compare/… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
[Git][tpo/applications/tor-browser-build][main] 2 commits: TB 45396: Move the mozconfig options to tor-browser-build
by brizental (@brizental) 16 Nov '26

16 Nov '26
brizental pushed to branch main at The Tor Project / Applications / tor-browser-build Commits: 513412ad by Beatriz Rizental at 2026-11-16T14:34:17+01:00 TB 45396: Move the mozconfig options to tor-browser-build Stop using the mozconfigs at the root of tor-browser.git and do not source any mozconfig from it. The options shared by all builds are now defaults in tor-browser.git's configure scripts, so we only set the options specific to official builds here (target, linker, stripping, ASan, LTO, etc.). Pass --with-distribution-id only for upstream Firefox builds: Tor Browser and Mullvad Browser now set their own as the default, and the command line would override it. Merge the mozconfig files of firefox and geckoview, and move the options passed to mach configure to the mozconfig. Use the options that also apply to upstream Firefox for the firefox-browser build too, such as the target, optimization, LTO, stripping, linker and geckodriver options, instead of only for Base Browser and derived browsers. This also fixes the target of aarch64 and armv7 firefox-browser builds, which previously defaulted to the host's architecture. Also remove options that are already the default (--disable-rust-debug), use --enable-project instead of the deprecated --enable-application, and deduplicate options that were set in both cases. - - - - - e6543f02 by Beatriz Rizental at 2026-11-16T14:34:17+01:00 Bug 41922: Remove ASan builds and the rlbox toggle Drop the linux-x86_64-asan targets and every var/asan code path. The var/rlbox toggle only existed so that ASan builds could disable RLBox, so remove it too: wasi-sysroot is now always used for firefox and geckoview, and we never pass --without-wasm-sandboxed-libraries. - - - - - 17 changed files: - Makefile - doc/MAKEFILE.txt - projects/browser/RelativeLink/start-browser - projects/firefox/README.md - projects/firefox/build - projects/firefox/config - − projects/firefox/mozconfig-upstream-firefox.in - projects/firefox/mozconfig.in - projects/geckoview/README.md - projects/geckoview/build - projects/geckoview/build_common.sh - projects/geckoview/config - − projects/geckoview/mozconfig-upstream-firefox.in - projects/geckoview/mozconfig.in - projects/release/config - projects/tor/build - rbm.conf Changes: ===================================== Makefile ===================================== @@ -35,9 +35,6 @@ torbrowser-release-android-x86_64: submodule-update torbrowser-release-linux-x86_64: submodule-update $(rbm) build release --target release --target browser-single-platform --target browser-linux-x86_64 --target torbrowser -torbrowser-release-linux-x86_64-asan: submodule-update - $(rbm) build release --target release --target browser-single-platform --target browser-linux-x86_64-asan --target torbrowser - torbrowser-release-linux-aarch64: submodule-update $(rbm) build release --target release --target browser-single-platform --target browser-linux-aarch64 --target torbrowser @@ -74,9 +71,6 @@ torbrowser-alpha-android-x86_64: submodule-update torbrowser-alpha-linux-x86_64: submodule-update $(rbm) build release --target alpha --target browser-single-platform --target browser-linux-x86_64 --target torbrowser -torbrowser-alpha-linux-x86_64-asan: submodule-update - $(rbm) build release --target alpha --target browser-single-platform --target browser-linux-x86_64-asan --target torbrowser - torbrowser-alpha-linux-aarch64: submodule-update $(rbm) build release --target alpha --target browser-single-platform --target browser-linux-aarch64 --target torbrowser @@ -113,9 +107,6 @@ torbrowser-nightly-android-x86_64: submodule-update torbrowser-nightly-linux-x86_64: submodule-update $(rbm) build release --target nightly --target browser-single-platform --target browser-linux-x86_64 --target torbrowser -torbrowser-nightly-linux-x86_64-asan: submodule-update - $(rbm) build release --target nightly --target browser-single-platform --target browser-linux-x86_64-asan --target torbrowser - torbrowser-nightly-linux-aarch64: submodule-update $(rbm) build release --target nightly --target browser-single-platform --target browser-linux-aarch64 --target torbrowser @@ -152,9 +143,6 @@ torbrowser-testbuild-android-x86_64: submodule-update torbrowser-testbuild-linux-x86_64: submodule-update $(rbm) build release --target testbuild --target browser-single-platform --target browser-linux-x86_64 --target torbrowser -torbrowser-testbuild-linux-x86_64-asan: submodule-update - $(rbm) build release --target testbuild --target browser-single-platform --target browser-linux-x86_64-asan --target torbrowser - torbrowser-testbuild-linux-aarch64: submodule-update $(rbm) build release --target testbuild --target browser-single-platform --target browser-linux-aarch64 --target torbrowser @@ -252,9 +240,6 @@ mullvadbrowser-release: submodule-update mullvadbrowser-release-linux-x86_64: submodule-update $(rbm) build release --target release --target browser-single-platform --target browser-linux-x86_64 --target mullvadbrowser -mullvadbrowser-release-linux-x86_64-asan: submodule-update - $(rbm) build release --target release --target browser-single-platform --target browser-linux-x86_64-asan --target mullvadbrowser - mullvadbrowser-release-linux-aarch64: submodule-update $(rbm) build release --target release --target browser-single-platform --target browser-linux-aarch64 --target mullvadbrowser @@ -273,9 +258,6 @@ mullvadbrowser-alpha: submodule-update mullvadbrowser-alpha-linux-x86_64: submodule-update $(rbm) build release --target alpha --target browser-single-platform --target browser-linux-x86_64 --target mullvadbrowser -mullvadbrowser-alpha-linux-x86_64-asan: submodule-update - $(rbm) build release --target alpha --target browser-single-platform --target browser-linux-x86_64-asan --target mullvadbrowser - mullvadbrowser-alpha-linux-aarch64: submodule-update $(rbm) build release --target alpha --target browser-single-platform --target browser-linux-aarch64 --target mullvadbrowser @@ -294,9 +276,6 @@ mullvadbrowser-nightly: submodule-update mullvadbrowser-nightly-linux-x86_64: submodule-update $(rbm) build release --target nightly --target browser-single-platform --target browser-linux-x86_64 --target mullvadbrowser -mullvadbrowser-nightly-linux-x86_64-asan: submodule-update - $(rbm) build release --target nightly --target browser-single-platform --target browser-linux-x86_64-asan --target mullvadbrowser - mullvadbrowser-nightly-linux-aarch64: submodule-update $(rbm) build release --target nightly --target browser-single-platform --target browser-linux-aarch64 --target mullvadbrowser @@ -315,9 +294,6 @@ mullvadbrowser-testbuild: submodule-update mullvadbrowser-testbuild-linux-x86_64: submodule-update $(rbm) build release --target testbuild --target browser-single-platform --target browser-linux-x86_64 --target mullvadbrowser -mullvadbrowser-testbuild-linux-x86_64-asan: submodule-update - $(rbm) build release --target testbuild --target browser-single-platform --target browser-linux-x86_64-asan --target mullvadbrowser - mullvadbrowser-testbuild-linux-aarch64: submodule-update $(rbm) build release --target testbuild --target browser-single-platform --target browser-linux-aarch64 --target mullvadbrowser ===================================== doc/MAKEFILE.txt ===================================== @@ -74,10 +74,6 @@ By default, macos builds are universal (targeting x86_64 and aarch64). With this special testbuild target, you can do a build for a specific arch only. -torbrowser-{release,alpha,nightly,testbuild}-linux-x86_64-asan --------------------------------------------------------------- -Create a build for Linux x86_64 with Address Sanitizer enabled. - torbrowser-{release,alpha,nightly,testbuild}-src ------------------------------------------------ Create source tarballs for firefox and torbutton. ===================================== projects/browser/RelativeLink/start-browser ===================================== @@ -301,13 +301,6 @@ if [ $SYSARCHITECTURE -ne $TORARCHITECTURE ]; then fi [% END -%] -[% IF c("var/asan") -%] -# We need to disable LSan which is enabled by default now. Otherwise we'll get -# a crash during shutdown: https://bugs.torproject.org/10599#comment:59 -ASAN_OPTIONS="detect_leaks=0" -export ASAN_OPTIONS -[% END -%] - [% IF c("var/tor-browser") -%] function setControlPortPasswd() { local ctrlPasswd=$1 ===================================== projects/firefox/README.md ===================================== @@ -50,8 +50,12 @@ References: ## Firefox configuration -We use `mozconfig`s from `tor-browser.git`, however we need to customize them to -include the paths to our toolchain. +The settings shared by every build, including development builds, are the +defaults of the configure scripts in `tor-browser.git`. + +`mozconfig.in` adds the settings that are specific to official builds, such as +the target, the linker and the stripping options. +Also, we need to customize them to include the paths to our toolchain. Also, we set a few other settings, that depend on the build we're running (update channel, branding, source commit hash to display in `about:buildconfig`, ===================================== projects/firefox/build ===================================== @@ -40,10 +40,8 @@ export PATH="/var/tmp/dist/rust/bin:/var/tmp/dist/cbindgen:/var/tmp/dist/node/bi tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/binutils') %] export PATH="/var/tmp/dist/binutils/bin:$PATH" [% END -%] - # Use clang for everything on Linux now if we don't build with ASan. - [% IF ! c("var/asan") -%] - export PATH="/var/tmp/dist/clang-linux/bin:$PATH" - [% END -%] + # Use clang for everything on Linux. + export PATH="/var/tmp/dist/clang-linux/bin:$PATH" [% IF c("var/linux-cross") -%] # Exporting `PKG_CONFIG_PATH` in the mozconfig file is causing build # breakage in Rust code. It seems that environment variable is not passed @@ -60,10 +58,8 @@ export PATH="/var/tmp/dist/rust/bin:/var/tmp/dist/cbindgen:/var/tmp/dist/node/bi tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/libdmg') %] [% END %] -[% IF c("var/rlbox") -%] - tar -C /var/tmp/dist -xf [% c('input_files_by_name/wasi-sysroot') %] - export WASI_SYSROOT=/var/tmp/dist/wasi-sysroot -[% END -%] +tar -C /var/tmp/dist -xf [% c('input_files_by_name/wasi-sysroot') %] +export WASI_SYSROOT=/var/tmp/dist/wasi-sysroot tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.[% c('compress_tar') %] @@ -72,12 +68,6 @@ mkdir -p $distdir/[% IF ! c("var/macos") %]Browser[% END %] cd /var/tmp/build/[% project %]-[% c("version") %] cp $rootdir/mozconfig ./ -[% IF c("var/asan") -%] - # Without disabling LSan our build is blowing up: - # https://bugs.torproject.org/10599#comment:52 - export ASAN_OPTIONS="detect_leaks=0" -[% END -%] - [% c("var/set_MOZ_BUILD_DATE") %] [% IF c("var/windows") -%] @@ -119,12 +109,7 @@ export LANG=C.UTF-8 [% END -%] echo "Starting ./mach configure $(date)" -./mach configure \ - --with-distribution-id=org.torproject \ - [% IF !c("var/firefox-browser") %]--with-base-browser-version=[% c("var/torbrowser_version") %][% END %] \ - [% IF c("var/updater_enabled") -%]--enable-update-channel=[% c("var/channel") %][% END %] \ - [% IF !c("var/firefox-browser") -%]--with-branding="$branding_dir"[% END %] \ - [% IF !c("var/rlbox") -%]--without-wasm-sandboxed-libraries[% END %] +./mach configure echo "Starting ./mach build $(date)" ./mach build --verbose @@ -326,10 +311,6 @@ END; # Not copying libstdc++.so.* as that dups with the full libstdc++.so.6.0.xx the .6 links to # and libstdc++.so.6.0.28-gdb.py which is also not needed cp "/var/tmp/dist/gcc/$libdir/libstdc++.so.6" "$libdest" - [% IF c("var/asan") -%] - cp "/var/tmp/dist/gcc/$libdir/libasan.so."* "$libdest" - cp "/var/tmp/dist/gcc/$libdir/libubsan.so."* "$libdest" - [% END -%] # Strip and generate debuginfo for libs for LIB in "$libdest"/*so* do ===================================== projects/firefox/config ===================================== @@ -191,7 +191,6 @@ input_files: enable: '[% c("var/has_l10n") %]' - project: wasi-sysroot name: wasi-sysroot - enable: '[% c("var/rlbox") %]' - project: node name: node - project: nasm ===================================== projects/firefox/mozconfig-upstream-firefox.in deleted ===================================== @@ -1,17 +0,0 @@ -# The file mozconfig-upstream-firefox.in is used to set some options -# needed to build upstream firefox. In Tor/Mullvad Browser, those -# options are set in the specific mozconfig files in tor-browser.git. - -[% IF c("var/windows-x86_64") -%] - ac_add_options --target=x86_64-pc-windows-gnu - ac_add_options --with-toolchain-prefix=x86_64-w64-mingw32- -[% END -%] -[% IF c("var/windows-i686") -%] - ac_add_options --target=i686-pc-windows-gnu - ac_add_options --with-toolchain-prefix=i686-w64-mingw32- -[% END -%] -[% IF c("var/windows") -%] - ac_add_options --disable-notification-server - - ac_add_options --disable-webrtc -[% END -%] ===================================== projects/firefox/mozconfig.in ===================================== @@ -1,14 +1,39 @@ -[% IF !c("var/firefox-browser") -%] - . $topsrcdir/mozconfig-[% IF c("var/macos"); GET 'macos'; ELSE; GET c("var/osname"); END; %][% IF c("var/asan") %]-asan[% END %] -[% ELSE; - INCLUDE 'mozconfig-upstream-firefox.in'; - END -%] +[% IF c("var/firefox-browser") -%] + # Tor Browser and Mullvad Browser set their own distribution ID as the + # default in tor-browser.git, so we only need to pass it for upstream + # Firefox, which would otherwise use org.mozilla. + ac_add_options --with-distribution-id=org.torproject +[% ELSE -%] + export MOZILLA_OFFICIAL=1 + + ac_add_options --with-base-browser-version=[% c("var/torbrowser_version") %] + ac_add_options --with-branding=browser/branding/[% c("var/project_initials") %]-[% c("var/channel") %] +[% END -%] +ac_add_options --disable-tests +ac_add_options --disable-bootstrap ac_add_options --enable-optimize ac_add_options --enable-rust-simd ac_add_options --enable-lto=cross [% IF c("var/linux") -%] + ac_add_options --enable-default-toolkit=cairo-gtk3 + + ac_add_options --disable-strip + ac_add_options --disable-install-strip + + # Moz switched to lld for all Linux targets in Bug 1839739. + ac_add_options --enable-linker=lld + + [% IF c("var/linux-x86_64") -%] + # tor-browser#44067: geckodriver has become a host-only tool + ac_add_options --enable-geckodriver + [% END -%] + + [% IF c("var/linux-aarch64") -%] + ac_add_options --target=aarch64-unknown-linux-gnu + [% END -%] + # We want to build with clang now and point to the GCC toolchain until #29041 is # fixed. We explicitly need to define the host compiler as well as for some # reason the gcc-toolchain argument does not get passed along otherwise. @@ -41,9 +66,21 @@ ac_add_options --enable-lto=cross clang_path=/var/tmp/dist/mingw-w64-clang + ac_add_options --target=[% c('arch') %]-pc-windows-gnu ac_add_options --with-toolchain-prefix=[% c('arch') %]-w64-mingw32- ac_add_options --enable-strip + # Bug 1782837: Not supported because Mozilla (and therefore also us) build + # libc++ with LIBCXX_ENABLE_FILESYSTEM disabled. + ac_add_options --disable-notification-server + + # tor-browser#44028: Disable zucchini for now, as it needs SEH. + ac_add_options --disable-zucchini + + [% IF c("var/firefox-browser") -%] + ac_add_options --disable-webrtc + [% END -%] + # For Stylo BINDGEN_CFLAGS="-I$clang_path/[% c('arch') %]-w64-mingw32/include/c++/v1 -I$clang_path/[% c('arch') %]-w64-mingw32/include" [% END -%] @@ -93,7 +130,12 @@ ac_add_options --enable-lto=cross ac_add_options --enable-strip [% END -%] -ac_add_options --[% IF c("var/updater_enabled") %]enable[% ELSE %]disable[% END %]-updater +[% IF c("var/updater_enabled") -%] + ac_add_options --enable-updater + ac_add_options --enable-update-channel=[% c("var/channel") %] +[% ELSE -%] + ac_add_options --disable-updater +[% END -%] [% IF !c("var/firefox-browser") -%] ac_add_options --[% IF c("var/updater_enabled") %]enable[% ELSE %]disable[% END %]-base-browser-update [% END -%] ===================================== projects/geckoview/README.md ===================================== @@ -57,9 +57,10 @@ More details on a way to do it are documented in # Mozconfig customization -For Android, the majority of `mozconfig` customization is versioned in -`tor-browser.git`. +For Android, the majority of the settings are the defaults of the configure +scripts in `tor-browser.git`. -The only additional information we add in the build scripts are the commit hash -we used for the build (to make it appear in `about:buildconfig`) and the channel -of the build. +`mozconfig.in` adds the settings that are specific to official builds, such as +the target, optimization, LTO and stripping options. +Apart from that, we only add the commit hash we used for the build (to make it +appear in `about:buildconfig`) and the channel of the build. ===================================== projects/geckoview/build ===================================== @@ -9,10 +9,8 @@ tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/clang') %] export LLVM_CONFIG="/var/tmp/dist/clang-linux/bin/llvm-config" export PATH="/var/tmp/dist/rust/bin:/var/tmp/dist/cbindgen:/var/tmp/dist/nasm/bin:/var/tmp/dist/clang-linux/bin:$PATH" -[% IF c("var/rlbox") -%] - tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/wasi-sysroot') %] - export WASI_SYSROOT=/var/tmp/dist/wasi-sysroot/ -[% END -%] +tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/wasi-sysroot') %] +export WASI_SYSROOT=/var/tmp/dist/wasi-sysroot/ [% INCLUDE 'build_common.sh' %] ===================================== projects/geckoview/build_common.sh ===================================== @@ -83,8 +83,4 @@ sed -i -e 's/-Xmx7g/-Xmx32g/' gradle.properties \ mobile/android/fenix/gradle.properties echo "Starting ./mach configure $(date)" -# We still need to specify --base-browser-version due to bug 34005. -./mach configure \ - [% IF !c("var/firefox-browser") %]--with-base-browser-version=[% c("var/torbrowser_version") %][% END %] \ - [% IF !c("var/firefox-browser") %]--with-branding=$branding_dir[% END %] \ - [% IF !c("var/rlbox") -%]--without-wasm-sandboxed-libraries[% END %] +./mach configure ===================================== projects/geckoview/config ===================================== @@ -46,7 +46,6 @@ var: variant: beta has_l10n: '[% !c("var/testbuild") && !c("var/locales").empty %]' l10n-changesets: '[% exec("git --no-pager show " _ c("git_hash") _ ":browser/locales/l10n-changesets.json", { exec_noco => 1 }) %]' - mozconfig_file: 'mozconfig-[% c("var/osname") %]' targets: release: @@ -80,8 +79,6 @@ steps: filename: 'geckoview-[% c("version") %]-apks-[% c("var/build_id") %]' version: '[% c("abbrev") %]' build_apk: '[% INCLUDE build_apk %]' - var: - mozconfig_file: 'mozconfig-android-all' input_files: - project: container-image pkg_type: build @@ -180,7 +177,6 @@ input_files: name: clang - project: wasi-sysroot name: wasi-sysroot - enable: '[% c("var/rlbox") %]' - project: application-services name: application-services enable: '[% !c("var/firefox-browser") %]' ===================================== projects/geckoview/mozconfig-upstream-firefox.in deleted ===================================== @@ -1,13 +0,0 @@ -# The file mozconfig-upstream-firefox.in is used to set some options -# needed to build upstream firefox. In Tor Browser, those options are -# set in the specific mozconfig files in tor-browser.git. - -ac_add_options --enable-application=mobile/android - -# Make sure to disable bootstrap also when running online builds for dependency -# updates. -ac_add_options --disable-bootstrap - -CC="clang" -CXX="clang++" -ac_add_options --enable-linker=lld ===================================== projects/geckoview/mozconfig.in ===================================== @@ -1,8 +1,39 @@ +ac_add_options --enable-project=mobile/android +ac_add_options --disable-tests +ac_add_options --enable-minify=properties,js +# Make sure to disable bootstrap also when running online builds for +# dependency updates. +ac_add_options --disable-bootstrap + [% IF !c("var/firefox-browser") -%] -. $topsrcdir/[% c("var/mozconfig_file") %] -[% ELSE; - INCLUDE 'mozconfig-upstream-firefox.in'; - END -%] + export MOZILLA_OFFICIAL=1 + + ac_add_options --with-base-browser-version=[% c("var/torbrowser_version") %] + ac_add_options --with-branding=mobile/android/branding/[% c("var/project_initials") %]-[% c("var/channel") %] +[% END -%] + +[% IF c("step") == "build_apk" -%] + ac_add_options --disable-compile-environment +[% ELSE -%] + CC="clang" + CXX="clang++" + ac_add_options --enable-linker=lld + + ac_add_options --enable-optimize + ac_add_options --enable-rust-simd + ac_add_options --enable-lto=cross + + ac_add_options --enable-strip + ac_add_options --enable-install-strip + + [% IF c("var/android-aarch64") -%] + ac_add_options --target=aarch64-linux-android + [% ELSIF c("var/android-armv7") -%] + ac_add_options --target=arm-linux-androideabi + [% ELSIF c("var/android-x86_64") -%] + ac_add_options --target=x86_64-linux-android + [% END -%] +[% END -%] ac_add_options --with-java-bin-path=/usr/lib/jvm/java-1.17.0-openjdk-amd64/bin ac_add_options --with-android-sdk=$ANDROID_HOME ===================================== projects/release/config ===================================== @@ -48,11 +48,6 @@ targets: var: browser_platforms: linux-x86_64: 1 - browser-linux-x86_64-asan: - var: - browser_platforms: - linux-x86_64: 1 - asan-build: '-asan' browser-linux-aarch64: var: browser_platforms: @@ -172,7 +167,7 @@ input_files: enable: '[% c("var/browser_platforms/linux-x86_64") %]' target: - '[% c("var/build_target") %]' - - '[% c("var/browser_type") %]-linux-x86_64[% c("var/asan-build") %]' + - '[% c("var/browser_type") %]-linux-x86_64' - name: linux-aarch64 project: browser ===================================== projects/tor/build ===================================== @@ -59,7 +59,6 @@ echo '"[% c("abbrev", { abbrev_length => 16 }) %]"' > micro-revision.i ./autogen.sh find -type f -print0 | xargs -0 [% c("touch") %] ./configure --disable-asciidoc --with-libevent-dir="$libeventdir" --with-openssl-dir="$openssldir" \ - [% IF c("var/asan") %]--enable-fragile-hardening[% END %] \ [% IF c("var/windows") || c("var/android") || c("var/linux-cross") %]--with-zlib-dir="$zlibdir"[% END %] \ [% IF c("var/macos") %]--enable-static-openssl[% END %] \ [% IF c("var/windows") || c("var/android") %]--enable-static-libevent --enable-static-openssl --enable-static-zlib[% END %] \ ===================================== rbm.conf ===================================== @@ -247,8 +247,6 @@ var: - zh-rCN - zh-rTW - rlbox: 1 - sign_build: '[% ENV.RBM_SIGN_BUILD %]' sign_build_gpg_opts: '[% ENV.RBM_GPG_OPTS %]' @@ -512,16 +510,6 @@ targets: - linux-x86_64 - linux - firefoxbrowser - torbrowser-linux-x86_64-asan: - - linux-asan - - linux-x86_64 - - linux - - torbrowser - mullvadbrowser-linux-x86_64-asan: - - linux-asan - - linux-x86_64 - - linux - - mullvadbrowser torbrowser-linux-aarch64: - linux-cross - linux-aarch64 @@ -581,13 +569,6 @@ targets: export DEB_BUILD_OPTIONS='hardening=+bindnow,+relro,+pie,+fortify,+stackprotector,+stackprotectorstrong,+format' mkdir -p /var/tmp/build eval $(cd /var/tmp/build; dpkg-buildflags --export=sh) - linux-asan: - var: - asan: 1 - # RLBox needs clang to create .wasm files but we use mostly GCC for our - # ASan builds. Thus, the compilation currently breaks with RLBox enabled. - # See: tor-browser-build#40063. - rlbox: 0 torbrowser-windows-i686: - windows-i686 View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/compare/… -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/compare/… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
[Git][tpo/applications/mullvad-browser][mullvad-browser-156.0a1-17.0-2] 2 commits: fixup! MB 38: Mullvad Browser configuration
by brizental (@brizental) 16 Nov '26

16 Nov '26
brizental pushed to branch mullvad-browser-156.0a1-17.0-2 at The Tor Project / Applications / Mullvad Browser Commits: a439540f by Beatriz Rizental at 2026-11-16T10:29:37-03:00 fixup! MB 38: Mullvad Browser configuration Bug 45396: Set Mullvad Browser's options as defaults. Set the relative data directory, distribution ID, application basename and user appdir in configure, so that they also apply to builds that do not use our mozconfigs. Also restore the upstream default for WebRTC, which Mullvad Browser keeps enabled. - - - - - 230e5555 by Beatriz Rizental at 2026-11-16T10:29:37-03:00 fixup! MB 1: Mullvad Browser branding Bug 45396: Use the nightly branding by default. Official builds always pass --with-branding, so this affects only development builds. - - - - - 6 changed files: - browser/config/mozconfigs/mullvad-browser - browser/confvars.sh - browser/moz.configure - build/moz.configure/init.configure - moz.configure - toolkit/moz.configure Changes: ===================================== browser/config/mozconfigs/mullvad-browser ===================================== @@ -1,10 +1,7 @@ -. $topsrcdir/browser/config/mozconfigs/base-browser +# This file is deprecated and will be removed, see tor-browser#45396. -export MOZ_APP_BASENAME=MullvadBrowser -mk_add_options MOZ_APP_DISPLAYNAME="Mullvad Browser" - -ac_add_options --with-user-appdir=Mullvad - -ac_add_options --with-relative-data-dir=../Data - -ac_add_options --with-distribution-id=net.mullvad +echo "browser/config/mozconfigs/mullvad-browser has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +exit 1 ===================================== browser/confvars.sh ===================================== @@ -9,5 +9,7 @@ # For mozilla-beta, mozilla-release, or mozilla-central repositories, use # "unofficial" branding. # For the mozilla-aurora repository, use "aurora". -MOZ_BRANDING_DIRECTORY=browser/branding/unofficial +# Mullvad Browser (tor-browser#45396): Use the nightly branding by default. +# Official builds always pass --with-branding. +MOZ_BRANDING_DIRECTORY=browser/branding/mb-nightly MOZ_OFFICIAL_BRANDING_DIRECTORY=browser/branding/official ===================================== browser/moz.configure ===================================== @@ -14,6 +14,7 @@ imply_option("MOZ_PROFILE_MIGRATOR", False) imply_option("MOZ_APP_VENDOR", "Mullvad") +imply_option("--with-user-appdir", "Mullvad", when=compile_environment) imply_option("MOZ_APP_ID", "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}") # Include the DevTools client, not just the server (which is the default) imply_option("MOZ_DEVTOOLS", "all") ===================================== build/moz.configure/init.configure ===================================== @@ -1290,7 +1290,8 @@ def moz_app_basename(value, target_is_android): return value[0] if target_is_android: return "Fennec" - return "Firefox" + # Mullvad Browser(tor-browser#45396): Use our basename by default. + return "MullvadBrowser" set_config( ===================================== moz.configure ===================================== @@ -996,7 +996,7 @@ with only_when(cross_compiling): def relative_data_dir_default(target): if target.os in ("Android", "OSX"): return None - return "BaseBrowser/Data/Browser" + return "../Data" option( ===================================== toolkit/moz.configure ===================================== @@ -87,7 +87,8 @@ set_config("MOZ_INCLUDE_SOURCE_INFO", True, when="MOZ_INCLUDE_SOURCE_INFO") option( "--with-distribution-id", nargs=1, - default="org.mozilla", + # Mullvad Browser (tor-browser#45396): Use our distribution ID by default. + default="net.mullvad", help="Set distribution-specific id", ) set_config("MOZ_DISTRIBUTION_ID", depends("--with-distribution-id")(lambda v: v[0])) @@ -1488,11 +1489,9 @@ def webrtc_default(target): return os_match and cpu_match and target.endianness == "little" -# Base Browser: Disable WebRTC by default. -# Before enabling, please notice that WebRTC does not work on mingw (Bug 1393901) option( "--disable-webrtc", - default=False, + default=webrtc_default, help="{Enable|Disable} support for WebRTC", ) View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/14… -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/14… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
[Git][tpo/applications/mullvad-browser][mullvad-browser-156.0a1-17.0-2] 4 commits: fixup! Base Browser's .mozconfigs.
by brizental (@brizental) 16 Nov '26

16 Nov '26
brizental pushed to branch mullvad-browser-156.0a1-17.0-2 at The Tor Project / Applications / Mullvad Browser Commits: 12892802 by Beatriz Rizental at 2026-11-16T10:24:54-03:00 fixup! Base Browser's .mozconfigs. TB 45396: Move Base Browser options to moz.configure. Move the options that every Base Browser build needs from the mozconfigs to moz.configure, so that they also apply to builds that do not use our mozconfigs, such as development builds. Options that must never be changed are implied, and cause an error if a mozconfig tries to change them. The others become the default values. Also, CONFIG["BASE_BROWSER"] is now unconditionally True, since --with-base-browser-version is mandatory. - - - - - a3e3e011 by Beatriz Rizental at 2026-11-16T10:24:56-03:00 fixup! BB 9173: Change the default Firefox profile directory to be relative. TB 45396: Make the relative data directory a default. This way it applies also to builds that do not use our mozconfigs, but it can still be overridden or disabled with --without-relative-data-dir. - - - - - a84e3f9d by Beatriz Rizental at 2026-11-16T10:26:54-03:00 fixup! Base Browser's .mozconfigs. TB 45396: Remove Base Browser's mozconfigs. All the options shared by every build are now in moz.configure, and the options specific to official builds are set by tor-browser-build. Replace the root mozconfigs with stubs that fail with instructions, so that developers using them know what to do, and remove them later. - - - - - 14ed7a06 by Beatriz Rizental at 2026-11-16T10:26:55-03:00 fixup! BB 43564: Modify ./mach bootstrap for Base Browser TB 45396: Add --with-base-browser-version to the suggested mozconfig. The version is mandatory, and it is the only option a developer build needs, so bootstrap can write a working mozconfig for every application. - - - - - 21 changed files: - browser/config/mozconfigs/base-browser - browser/config/mozconfigs/base-browser-android - + build/moz.configure/basebrowser.configure - moz.configure - mozconfig-android-aarch64 - mozconfig-android-all - mozconfig-android-armv7 - mozconfig-android-x86 - mozconfig-android-x86_64 - mozconfig-linux-aarch64 - mozconfig-linux-aarch64-dev - − mozconfig-linux-arm - mozconfig-linux-x86_64 - − mozconfig-linux-x86_64-asan - mozconfig-linux-x86_64-dev - mozconfig-macos - mozconfig-macos-dev - mozconfig-windows-i686 - mozconfig-windows-x86_64 - python/mozboot/mozboot/bootstrap.py - toolkit/moz.configure Changes: ===================================== browser/config/mozconfigs/base-browser ===================================== @@ -1,48 +1,7 @@ -# Shared build settings and settings to enhance security and privacy. +# This file is deprecated and will be removed, see tor-browser#45396. -. $topsrcdir/browser/config/mozconfig - -if test -f "$topsrcdir/mozconfig-toolchain"; then - . $topsrcdir/mozconfig-toolchain -fi - -mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@ - -export MOZILLA_OFFICIAL=1 - -ac_add_options --enable-optimize -ac_add_options --enable-rust-simd -ac_add_options --enable-lto=cross - -ac_add_options --disable-unverified-updates -ac_add_options --enable-base-browser-update - -ac_add_options --enable-bundled-fonts - -ac_add_options --disable-tests -ac_add_options --disable-debug - -ac_add_options --disable-crashreporter -ac_add_options --disable-parental-controls -ac_add_options --enable-proxy-bypass-protection -# tor-browser#45336 -ac_add_options --disable-proxy-direct-failover -# See bugs #30575 and #32418: system policies are harmful either because they -# could allow proxy bypass, and override a number of other preferences we set -ac_add_options --disable-system-policies -# tor-browser#44394 -ac_add_options --disable-system-preferences - -# See bug #41131 -ac_add_options --disable-backgroundtasks - -# Disable telemetry -ac_add_options MOZ_TELEMETRY_REPORTING= - -# Disable the creation of a <something>.default that Firefox by default creates -# for old version that could not use dedicated profiles. See tor-browser#41542. -ac_add_options --disable-legacy-profile-creation - -if test -z "$WASI_SYSROOT"; then - ac_add_options --without-wasm-sandboxed-libraries -fi +echo "browser/config/mozconfigs/base-browser has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +exit 1 ===================================== browser/config/mozconfigs/base-browser-android ===================================== @@ -1,49 +1,9 @@ -# Changes on this file might need to be synchronized with mozconfig-android-all! -# See also tor-browser#43151. - -export MOZILLA_OFFICIAL=1 - -ac_add_options --enable-optimize -ac_add_options --enable-rust-simd -ac_add_options --enable-lto=cross - -ac_add_options --enable-application=mobile/android - -CC="clang" -CXX="clang++" -ac_add_options --enable-linker=lld - -ac_add_options --enable-strip -ac_add_options --enable-install-strip -ac_add_options --disable-tests -ac_add_options --disable-debug -ac_add_options --disable-rust-debug - -ac_add_options --disable-updater -ac_add_options --disable-crashreporter -ac_add_options --disable-webrtc -ac_add_options --disable-parental-controls - -ac_add_options --enable-proxy-bypass-protection -# tor-browser#45336 -ac_add_options --disable-proxy-direct-failover -ac_add_options --disable-system-policies - -# See tor-browser#41131 -ac_add_options --disable-backgroundtasks - -ac_add_options --enable-minify=properties,js - -# Disable telemetry -ac_add_options MOZ_TELEMETRY_REPORTING= - -if test -n "$LOCAL_DEV_BUILD"; then - # You must use the "default" bogus channel for dev builds - ac_add_options --enable-update-channel=default - ac_add_options --with-base-browser-version=dev-build - ac_add_options --disable-minify -fi - -if test -z "$WASI_SYSROOT"; then - ac_add_options --without-wasm-sandboxed-libraries -fi +# This file is deprecated and will be removed, see tor-browser#45396. + +echo "browser/config/mozconfigs/base-browser-android has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --enable-project=mobile/android" >&2 +exit 1 ===================================== build/moz.configure/basebrowser.configure ===================================== @@ -0,0 +1,31 @@ +# Options that must not be changed in Base Browser and derived browsers. +# Note: These options apply to both Android and Desktop. +# ------------------------------------------------- + +imply_option("MOZ_TELEMETRY_REPORTING", False) +imply_option("--enable-crashreporter", False) +imply_option("--enable-unverified-updates", False) +imply_option("--enable-proxy-bypass-protection", True) + +# tor-browser#45336 +imply_option("--enable-proxy-direct-failover", False) + +# See tor-browser#30575 and tor-browser#32418: system policies are harmful either +# because they could allow proxy bypass, and override a number of other preferences we set +imply_option("--enable-system-policies", False) + +# tor-browser#44394 +imply_option( + "--enable-system-preferences", + False, + when=depends(build_project)(lambda p: p == "browser"), +) + +# tor-browser#13379 +imply_option("--enable-nss-mar", True, when=target_is_windows | target_is_osx) + +# tor-browser#41131 +imply_option("--enable-update-agent", False, when=target_is_windows | target_is_osx) +imply_option("--enable-bits-download", False, when=target_is_windows) +imply_option("--enable-maintenance-service", False, when=target_is_windows) +imply_option("--enable-default-browser-agent", False, when=target_is_windows) ===================================== moz.configure ===================================== @@ -246,6 +246,7 @@ def check_prog(*args, **kwargs): include("build/moz.configure/toolchain.configure", when="--enable-compile-environment") +include("build/moz.configure/basebrowser.configure") include("build/moz.configure/basebrowser-resources.configure") include("build/moz.configure/pkg.configure") @@ -988,9 +989,20 @@ with only_when(cross_compiling): ) set_config("JS_BINARY", depends_if("JS_BINARY")(lambda value: value[0])) + +# Base Browser: Make the data directory relative to the application by +# default. See tor-browser#9173. +@depends(target) +def relative_data_dir_default(target): + if target.os in ("Android", "OSX"): + return None + return "BaseBrowser/Data/Browser" + + option( "--with-relative-data-dir", nargs=1, + default=relative_data_dir_default, help="Sets the data directories to be relative to the application directory", ) @@ -1034,6 +1046,7 @@ def base_browser_version_quoted(value): return f'"{value[0]}"' +set_config("BASE_BROWSER", True) set_define("BASE_BROWSER_VERSION", base_browser_version) set_define("BASE_BROWSER_VERSION_QUOTED", base_browser_version_quoted) ===================================== mozconfig-android-aarch64 ===================================== @@ -1,4 +1,10 @@ -. $topsrcdir/browser/config/mozconfigs/base-browser-android +# This file is deprecated and will be removed, see tor-browser#45396. -mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-aarch64-linux-android -ac_add_options --target=aarch64-linux-android +echo "mozconfig-android-aarch64 has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --enable-project=mobile/android" >&2 +echo " ac_add_options --target=aarch64-linux-android" >&2 +exit 1 ===================================== mozconfig-android-all ===================================== @@ -1,39 +1,9 @@ -# Changes on this file might need to be synchronized with -# browser/config/mozconfigs/base-browser-android! -# See also tor-browser#43151. - -export MOZILLA_OFFICIAL=1 - -ac_add_options --enable-application=mobile/android - -ac_add_options --disable-compile-environment - -ac_add_options --disable-tests -ac_add_options --disable-debug - -ac_add_options --disable-updater -ac_add_options --disable-crashreporter -ac_add_options --disable-webrtc -ac_add_options --disable-parental-controls - -ac_add_options --enable-proxy-bypass-protection -ac_add_options --disable-system-policies - -# See tor-browser#41131 -ac_add_options --disable-backgroundtasks - -ac_add_options --enable-minify=properties,js - -# Disable telemetry -ac_add_options MOZ_TELEMETRY_REPORTING= - -if test -n "$LOCAL_DEV_BUILD"; then - # You must use the "default" bogus channel for dev builds - ac_add_options --enable-update-channel=default - ac_add_options --with-base-browser-version=dev-build - ac_add_options --disable-minify -fi - -if test -z "$WASI_SYSROOT"; then - ac_add_options --without-wasm-sandboxed-libraries -fi +# This file is deprecated and will be removed, see tor-browser#45396. + +echo "mozconfig-android-all has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --enable-project=mobile/android" >&2 +exit 1 ===================================== mozconfig-android-armv7 ===================================== @@ -1,4 +1,10 @@ -. $topsrcdir/browser/config/mozconfigs/base-browser-android +# This file is deprecated and will be removed, see tor-browser#45396. -mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-arm-linux-androideabi -ac_add_options --target=arm-linux-androideabi +echo "mozconfig-android-armv7 has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --enable-project=mobile/android" >&2 +echo " ac_add_options --target=arm-linux-androideabi" >&2 +exit 1 ===================================== mozconfig-android-x86 ===================================== @@ -1,4 +1,10 @@ -. $topsrcdir/browser/config/mozconfigs/base-browser-android +# This file is deprecated and will be removed, see tor-browser#45396. -mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-i386-linux-android -ac_add_options --target=i686-linux-android +echo "mozconfig-android-x86 has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --enable-project=mobile/android" >&2 +echo " ac_add_options --target=i686-linux-android" >&2 +exit 1 ===================================== mozconfig-android-x86_64 ===================================== @@ -1,4 +1,10 @@ -. $topsrcdir/browser/config/mozconfigs/base-browser-android +# This file is deprecated and will be removed, see tor-browser#45396. -mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-x86_64-linux-android -ac_add_options --target=x86_64-linux-android +echo "mozconfig-android-x86_64 has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --enable-project=mobile/android" >&2 +echo " ac_add_options --target=x86_64-linux-android" >&2 +exit 1 ===================================== mozconfig-linux-aarch64 ===================================== @@ -1,12 +1,9 @@ -. $topsrcdir/browser/config/mozconfigs/mullvad-browser - -ac_add_options --target=aarch64-unknown-linux-gnu - -# Moz switched to lld for all Linux targets in Bug 1839739. -ac_add_options --enable-linker=lld - -ac_add_options --disable-strip -ac_add_options --disable-install-strip - -ac_add_options --enable-default-toolkit=cairo-gtk3 - +# This file is deprecated and will be removed, see tor-browser#45396. + +echo "mozconfig-linux-aarch64 has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --target=aarch64-unknown-linux-gnu" >&2 +exit 1 ===================================== mozconfig-linux-aarch64-dev ===================================== @@ -1,24 +1,9 @@ -. $topsrcdir/browser/config/mozconfigs/mullvad-browser - -# This mozconfig file is not used in official builds. -# It is only intended to be used when doing incremental Linux builds -# during development. - -# Moz switched to lld for all Linux targets in Bug 1839739. -ac_add_options --enable-linker=lld - -# Disable LTO for dev builds, even though other optimizations are enabled. -ac_add_options --disable-lto - -export MOZILLA_OFFICIAL= -ac_add_options --with-branding=browser/branding/mb-nightly - -ac_add_options --enable-default-toolkit=cairo-gtk3 - -ac_add_options --disable-strip -ac_add_options --disable-install-strip - -ac_add_options --with-base-browser-version=dev-build -ac_add_options --disable-base-browser-update - -ac_add_options --enable-tests +# This file is deprecated and will be removed, see tor-browser#45396. + +echo "mozconfig-linux-aarch64-dev has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --target=aarch64-unknown-linux-gnu" >&2 +exit 1 ===================================== mozconfig-linux-arm deleted ===================================== @@ -1,18 +0,0 @@ -. $topsrcdir/browser/config/mozconfigs/base-browser - -ac_add_options --target=arm-linux-gnueabihf - -ac_add_options --enable-default-toolkit=cairo-gtk3 - -# Bug 31448: ld.gold fails if we don't disable debug-symbols. -# Also, we keep strip enabled. -ac_add_options --disable-debug-symbols - -# From Arch Linux ARM for Firefox 102.0.1 -# https://github.com/archlinuxarm/PKGBUILDs/blob/6da804f4020487c112f59ea067e6… -ac_add_options --disable-elf-hack -ac_add_options --disable-av1 -ac_add_options --enable-optimize="-g0 -O2" -# One of the following two lines (not sure which) prevents "read-only segment has dynamic relocations" linker error. -export MOZ_DEBUG_FLAGS=" " -export RUSTFLAGS="-Cdebuginfo=0" ===================================== mozconfig-linux-x86_64 ===================================== @@ -1,15 +1,7 @@ -. $topsrcdir/browser/config/mozconfigs/mullvad-browser +# This file is deprecated and will be removed, see tor-browser#45396. -# Moz switched to lld for all Linux targets in Bug 1839739. -ac_add_options --enable-linker=lld - -ac_add_options --disable-strip -ac_add_options --disable-install-strip - -ac_add_options --enable-default-toolkit=cairo-gtk3 - -# Let's make sure no preference is enabling either Adobe's or Google's CDM. -ac_add_options --disable-eme - -# tor-browser#44067: geckodriver has become a host-only tool -ac_add_options --enable-geckodriver +echo "mozconfig-linux-x86_64 has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +exit 1 ===================================== mozconfig-linux-x86_64-asan deleted ===================================== @@ -1,26 +0,0 @@ -. $topsrcdir/browser/config/mozconfigs/mullvad-browser - -export CFLAGS="-fsanitize=address -Dxmalloc=myxmalloc" -export CXXFLAGS="-fsanitize=address -Dxmalloc=myxmalloc" -# We need to add -ldl explicitely due to bug 1213698 -export LDFLAGS="-fsanitize=address -ldl" - -# Define HOST_CFLAGS, etc. to avoid compiling programs such as mbsdiff -# (which is part of mar-tools and is not distributed to end-users) with -# ASan. See bug 17858. -export HOST_CFLAGS="" -export HOST_CXXFLAGS="" -export HOST_LDFLAGS="-ldl" - -ac_add_options --enable-address-sanitizer -ac_add_options --disable-jemalloc -ac_add_options --disable-elf-hack - -ac_add_options --enable-default-toolkit=cairo-gtk3 - -ac_add_options --disable-strip -ac_add_options --disable-install-strip - -# Let's make sure no preference is enabling either Adobe's or Google's CDM. -ac_add_options --disable-eme - ===================================== mozconfig-linux-x86_64-dev ===================================== @@ -1,27 +1,7 @@ -. $topsrcdir/browser/config/mozconfigs/mullvad-browser +# This file is deprecated and will be removed, see tor-browser#45396. -# This mozconfig file is not used in official builds. -# It is only intended to be used when doing incremental Linux builds -# during development. - -# Moz switched to lld for all Linux targets in Bug 1839739. -ac_add_options --enable-linker=lld - -# Disable LTO for dev builds, even though other optimizations are enabled. -ac_add_options --disable-lto - -export MOZILLA_OFFICIAL= -ac_add_options --with-branding=browser/branding/mb-nightly - -ac_add_options --enable-default-toolkit=cairo-gtk3 - -ac_add_options --disable-strip -ac_add_options --disable-install-strip - -ac_add_options --with-base-browser-version=dev-build -ac_add_options --disable-base-browser-update - -# Let's make sure no preference is enabling either Adobe's or Google's CDM. -ac_add_options --disable-eme - -ac_add_options --enable-tests +echo "mozconfig-linux-x86_64-dev has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +exit 1 ===================================== mozconfig-macos ===================================== @@ -1,15 +1,7 @@ -. $topsrcdir/browser/config/mozconfigs/mullvad-browser +# This file is deprecated and will be removed, see tor-browser#45396. -ac_add_options --enable-strip - -# See bug #13379 -ac_add_options --enable-nss-mar - -# See bug #41131 -ac_add_options --disable-update-agent - -# Let's make sure no preference is enabling either Adobe's or Google's CDM. -ac_add_options --disable-eme - -# For base-browser we do not enable portable mode on macOS. -ac_add_options --without-relative-data-dir +echo "mozconfig-macos has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +exit 1 ===================================== mozconfig-macos-dev ===================================== @@ -1,26 +1,7 @@ -. $topsrcdir/browser/config/mozconfigs/mullvad-browser +# This file is deprecated and will be removed, see tor-browser#45396. -# This mozconfig file is not used in official builds. -# It is only intended to be used when doing incremental macOS builds -# during development. - -# Disable LTO for dev builds, even though other optimizations are enabled. -ac_add_options --disable-lto - -export MOZILLA_OFFICIAL= - -ac_add_options --disable-strip -ac_add_options --disable-install-strip - -ac_add_options --with-base-browser-version=dev-build - -ac_add_options --disable-base-browser-update -# See bug #13379 -ac_add_options --enable-nss-mar -# See bug #41131 -ac_add_options --disable-update-agent - -# Let's make sure no preference is enabling either Adobe's or Google's CDM. -ac_add_options --disable-eme - -ac_add_options --enable-tests +echo "mozconfig-macos-dev has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +exit 1 ===================================== mozconfig-windows-i686 ===================================== @@ -1,27 +1,9 @@ -. $topsrcdir/browser/config/mozconfigs/base-browser - -ac_add_options --target=i686-pc-windows-gnu -ac_add_options --with-toolchain-prefix=i686-w64-mingw32- - -ac_add_options --enable-strip - -# Bits is Background Intelligent Transfer Service -ac_add_options --disable-bits-download -ac_add_options --disable-maintenance-service -ac_add_options --disable-default-browser-agent - -# See bug #13379 -ac_add_options --enable-nss-mar - -# See bug #41131 -ac_add_options --disable-update-agent - -# Bug 1782837: Not supported because Mozilla (and therefore also us) build -# libc++ with LIBCXX_ENABLE_FILESYSTEM disabled. -ac_add_options --disable-notification-server - -# Let's make sure no preference is enabling either Adobe's or Google's CDM. -ac_add_options --disable-eme - -# tor-browser#44028: Disable zucchini for now, as it needs SEH. -ac_add_options --disable-zucchini +# This file is deprecated and will be removed, see tor-browser#45396. + +echo "mozconfig-windows-i686 has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --target=i686-pc-windows-gnu" >&2 +exit 1 ===================================== mozconfig-windows-x86_64 ===================================== @@ -1,29 +1,9 @@ -. $topsrcdir/browser/config/mozconfigs/mullvad-browser - -ac_add_options --target=x86_64-pc-windows-gnu -ac_add_options --with-toolchain-prefix=x86_64-w64-mingw32- - -ac_add_options --enable-strip - -# Bits is Background Intelligent Transfer Service -ac_add_options --disable-bits-download -ac_add_options --disable-maintenance-service - -# See bug #13379 -ac_add_options --enable-nss-mar - -# See bug #41131 -ac_add_options --disable-update-agent - -# Bug 1782837: Not supported because Mozilla (and therefore also us) build -# libc++ with LIBCXX_ENABLE_FILESYSTEM disabled. -ac_add_options --disable-notification-server - -# Let's make sure no preference is enabling either Adobe's or Google's CDM. -ac_add_options --disable-eme - -# tor-browser#44028: Disable zucchini for now, as it needs SEH. -ac_add_options --disable-zucchini - -# mullvad-browser#320: Temporarily disable until we resolve the mingw problems. -ac_add_options --disable-default-browser-agent +# This file is deprecated and will be removed, see tor-browser#45396. + +echo "mozconfig-windows-x86_64 has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --target=x86_64-pc-windows-gnu" >&2 +exit 1 ===================================== python/mozboot/mozboot/bootstrap.py ===================================== @@ -724,6 +724,7 @@ class Bootstrapper: self._write_default_mozconfig(expected_raw_mozconfig) def _output_mozconfig(self, application, mozconfig_builder): + mozconfig_builder.append("ac_add_options --with-base-browser-version=dev-build") # Like 'generate_browser_mozconfig' or 'generate_mobile_android_mozconfig'. additional_mozconfig = getattr( self.instance, "generate_%s_mozconfig" % application ===================================== toolkit/moz.configure ===================================== @@ -947,11 +947,11 @@ def eme_choices(target, wmf): return ("widevine",) -# Widevine is enabled by default in desktop browser builds. +# Base Browser: Disable EME by default, to make sure no preference is +# enabling either Adobe's or Google's CDM. @depends(build_project, eme_choices) def eme_default(build_project, choices): - if build_project == "browser": - return choices + return None option( @@ -1488,9 +1488,11 @@ def webrtc_default(target): return os_match and cpu_match and target.endianness == "little" +# Base Browser: Disable WebRTC by default. +# Before enabling, please notice that WebRTC does not work on mingw (Bug 1393901) option( "--disable-webrtc", - default=webrtc_default, + default=False, help="{Enable|Disable} support for WebRTC", ) @@ -2207,7 +2209,8 @@ set_config( @depends(target) def bundled_fonts_default(target): - return target.os == "WINNT" or target.kernel == "Linux" + # Base Browser: Enable bundled fonts on all desktop platforms. + return True @depends(build_project) @@ -3178,9 +3181,12 @@ include("../build/moz.configure/nss.configure") # Enable or disable running in background task mode: headless for # periodic, short-lived, maintenance tasks. # ============================================================================== +# Base Browser: Disable background tasks by default. +# See tor-browser#41131. option( "--disable-backgroundtasks", - help="Disable running in background task mode", + default=False, + help="{Enable|Disable} running in background task mode", ) set_config("MOZ_BACKGROUNDTASKS", True, when="--enable-backgroundtasks") set_define("MOZ_BACKGROUNDTASKS", True, when="--enable-backgroundtasks") @@ -3661,7 +3667,13 @@ set_define("MOZ_AUTH_EXTENSION", True, when="--enable-negotiateauth") # Parental control # ============================================================== -option("--disable-parental-controls", help="Do not build parental controls") +# Base Browser: Do not build parental controls by default. +# See tor-browser#33851. +option( + "--disable-parental-controls", + default=False, + help="{Build|Do not build} parental controls", +) set_config( "MOZ_DISABLE_PARENTAL_CONTROLS", @@ -4341,10 +4353,13 @@ set_define("MOZ_SYSTEM_PREFERENCES", True, when="--enable-system-preferences") # Allow disabling the creation a legacy profile # ============================================================== +# Base Browser: Do not create a legacy profile by default on desktop. +# See tor-browser#41542. option( "--disable-legacy-profile-creation", - help="Disable the creation a legacy profile, to be used by old versions " - "of Firefox, when no profiles exist", + default=depends(build_project)(lambda p: p != "browser"), + help="{Enable|Disable} the creation a legacy profile, to be used by old " + "versions of Firefox, when no profiles exist", ) set_config("MOZ_CREATE_LEGACY_PROFILE", True, when="--enable-legacy-profile-creation") View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/11… -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/11… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
[Git][tpo/applications/tor-browser][tor-browser-156.0a1-17.0-2] 7 commits: fixup! Base Browser's .mozconfigs.
by brizental (@brizental) 16 Nov '26

16 Nov '26
brizental pushed to branch tor-browser-156.0a1-17.0-2 at The Tor Project / Applications / Tor Browser Commits: 7dd8e38e by Beatriz Rizental at 2026-11-12T16:38:59-03:00 fixup! Base Browser's .mozconfigs. TB 45396: Move Base Browser options to moz.configure. Move the options that every Base Browser build needs from the mozconfigs to moz.configure, so that they also apply to builds that do not use our mozconfigs, such as development builds. Options that must never be changed are implied, and cause an error if a mozconfig tries to change them. The others become the default values. Also, CONFIG["BASE_BROWSER"] is now unconditionally True, since --with-base-browser-version is mandatory. - - - - - 9478b05d by Beatriz Rizental at 2026-11-12T16:39:00-03:00 fixup! BB 9173: Change the default Firefox profile directory to be relative. TB 45396: Make the relative data directory a default. This way it applies also to builds that do not use our mozconfigs, but it can still be overridden or disabled with --without-relative-data-dir. - - - - - 134dfa72 by Beatriz Rizental at 2026-11-12T16:39:00-03:00 fixup! TB3: Tor Browser's official .mozconfigs. TB 45396: Set Tor Browser's relative data directory and distribution ID as defaults. - - - - - 62a4a0fa by Beatriz Rizental at 2026-11-12T16:39:01-03:00 fixup! TB 2176: Rebrand Firefox to TorBrowser TB 45396: Use the nightly branding by default. Official builds always pass --with-branding, so this affects only development builds. - - - - - 68613414 by Beatriz Rizental at 2026-11-12T16:39:02-03:00 fixup! Base Browser's .mozconfigs. TB 45396: Remove Base Browser's mozconfigs. All the options shared by every build are now in moz.configure, and the options specific to official builds are set by tor-browser-build. Replace the root mozconfigs with stubs that fail with instructions, so that developers using them know what to do, and remove them later. - - - - - 23062acf by Beatriz Rizental at 2026-11-12T16:39:03-03:00 fixup! TB3: Tor Browser's official .mozconfigs. TB 45396: Remove Tor Browser's mozconfigs. - - - - - 75c6be6d by Beatriz Rizental at 2026-11-12T16:39:04-03:00 fixup! BB 43564: Modify ./mach bootstrap for Base Browser TB 45396: Add --with-base-browser-version to the suggested mozconfig. The version is mandatory, and it is the only option a developer build needs, so bootstrap can write a working mozconfig for every application. - - - - - 25 changed files: - browser/config/mozconfigs/base-browser - browser/config/mozconfigs/base-browser-android - browser/config/mozconfigs/tor-browser - browser/config/mozconfigs/tor-browser-android - browser/confvars.sh - + build/moz.configure/basebrowser.configure - mobile/android/confvars.sh - moz.configure - mozconfig-android-aarch64 - mozconfig-android-all - mozconfig-android-armv7 - mozconfig-android-x86 - mozconfig-android-x86_64 - mozconfig-linux-aarch64 - mozconfig-linux-aarch64-dev - − mozconfig-linux-arm - mozconfig-linux-x86_64 - − mozconfig-linux-x86_64-asan - mozconfig-linux-x86_64-dev - mozconfig-macos - mozconfig-macos-dev - mozconfig-windows-i686 - mozconfig-windows-x86_64 - python/mozboot/mozboot/bootstrap.py - toolkit/moz.configure Changes: ===================================== browser/config/mozconfigs/base-browser ===================================== @@ -1,50 +1,7 @@ -# Shared build settings and settings to enhance security and privacy. +# This file is deprecated and will be removed, see tor-browser#45396. -. $topsrcdir/browser/config/mozconfig - -if test -f "$topsrcdir/mozconfig-toolchain"; then - . $topsrcdir/mozconfig-toolchain -fi - -mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@ - -export MOZILLA_OFFICIAL=1 - -ac_add_options --enable-optimize -ac_add_options --enable-rust-simd -ac_add_options --enable-lto=cross - -ac_add_options --disable-unverified-updates -ac_add_options --enable-base-browser-update - -ac_add_options --enable-bundled-fonts - -ac_add_options --disable-tests -ac_add_options --disable-debug - -ac_add_options --disable-crashreporter -# Before removing, please notice that WebRTC does not work on mingw (Bug 1393901) -ac_add_options --disable-webrtc -ac_add_options --disable-parental-controls -ac_add_options --enable-proxy-bypass-protection -# tor-browser#45336 -ac_add_options --disable-proxy-direct-failover -# See bugs #30575 and #32418: system policies are harmful either because they -# could allow proxy bypass, and override a number of other preferences we set -ac_add_options --disable-system-policies -# tor-browser#44394 -ac_add_options --disable-system-preferences - -# See bug #41131 -ac_add_options --disable-backgroundtasks - -# Disable telemetry -ac_add_options MOZ_TELEMETRY_REPORTING= - -# Disable the creation of a <something>.default that Firefox by default creates -# for old version that could not use dedicated profiles. See tor-browser#41542. -ac_add_options --disable-legacy-profile-creation - -if test -z "$WASI_SYSROOT"; then - ac_add_options --without-wasm-sandboxed-libraries -fi +echo "browser/config/mozconfigs/base-browser has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +exit 1 ===================================== browser/config/mozconfigs/base-browser-android ===================================== @@ -1,49 +1,9 @@ -# Changes on this file might need to be synchronized with mozconfig-android-all! -# See also tor-browser#43151. - -export MOZILLA_OFFICIAL=1 - -ac_add_options --enable-optimize -ac_add_options --enable-rust-simd -ac_add_options --enable-lto=cross - -ac_add_options --enable-application=mobile/android - -CC="clang" -CXX="clang++" -ac_add_options --enable-linker=lld - -ac_add_options --enable-strip -ac_add_options --enable-install-strip -ac_add_options --disable-tests -ac_add_options --disable-debug -ac_add_options --disable-rust-debug - -ac_add_options --disable-updater -ac_add_options --disable-crashreporter -ac_add_options --disable-webrtc -ac_add_options --disable-parental-controls - -ac_add_options --enable-proxy-bypass-protection -# tor-browser#45336 -ac_add_options --disable-proxy-direct-failover -ac_add_options --disable-system-policies - -# See tor-browser#41131 -ac_add_options --disable-backgroundtasks - -ac_add_options --enable-minify=properties,js - -# Disable telemetry -ac_add_options MOZ_TELEMETRY_REPORTING= - -if test -n "$LOCAL_DEV_BUILD"; then - # You must use the "default" bogus channel for dev builds - ac_add_options --enable-update-channel=default - ac_add_options --with-base-browser-version=dev-build - ac_add_options --disable-minify -fi - -if test -z "$WASI_SYSROOT"; then - ac_add_options --without-wasm-sandboxed-libraries -fi +# This file is deprecated and will be removed, see tor-browser#45396. + +echo "browser/config/mozconfigs/base-browser-android has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --enable-project=mobile/android" >&2 +exit 1 ===================================== browser/config/mozconfigs/tor-browser ===================================== @@ -1,18 +1,7 @@ -. $topsrcdir/browser/config/mozconfigs/base-browser +# This file is deprecated and will be removed, see tor-browser#45396. -# If building outside tor-browser-build, you might want to customize this value. -# On Linux, it influences the WM_CLASS value, which is shown on GNOME's ALT-TAB, -# for example. -# We customize it in tor-browser-build because we include the channel name, just -# like Firefox does. -# export MOZ_APP_REMOTINGNAME="Tor Browser" - -ac_add_options --with-relative-data-dir=TorBrowser/Data/Browser -# This is not needed with the relative data directory, but it is when you -# disable it, otherwise it is "Mozilla" (on Windows and macOS) or ".mozilla" on -# Unix systems. -# It is used, for example, for GetProductDirectory. -# ac_add_options --with-user-appdir=TorProject -# ac_add_options --with-user-appdir=.torproject - -ac_add_options --with-distribution-id=org.torproject +echo "browser/config/mozconfigs/tor-browser has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +exit 1 ===================================== browser/config/mozconfigs/tor-browser-android ===================================== @@ -1,7 +1,9 @@ -. $topsrcdir/browser/config/mozconfigs/base-browser-android +# This file is deprecated and will be removed, see tor-browser#45396. -mk_add_options MOZ_APP_DISPLAYNAME="Tor Browser" - -if test -n "$LOCAL_DEV_BUILD"; then - ac_add_options --with-branding=mobile/android/branding/tb-nightly -fi +echo "browser/config/mozconfigs/tor-browser-android has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --enable-project=mobile/android" >&2 +exit 1 ===================================== browser/confvars.sh ===================================== @@ -9,5 +9,7 @@ # For mozilla-beta, mozilla-release, or mozilla-central repositories, use # "unofficial" branding. # For the mozilla-aurora repository, use "aurora". -MOZ_BRANDING_DIRECTORY=browser/branding/unofficial +# Tor Browser: Use the nightly branding by default. Official builds always +# pass --with-branding. See tor-browser#45396. +MOZ_BRANDING_DIRECTORY=browser/branding/tb-nightly MOZ_OFFICIAL_BRANDING_DIRECTORY=browser/branding/official ===================================== build/moz.configure/basebrowser.configure ===================================== @@ -0,0 +1,31 @@ +# Options that must not be changed in Base Browser and derived browsers. +# Note: These options apply to both Android and Desktop. +# ------------------------------------------------- + +imply_option("MOZ_TELEMETRY_REPORTING", False) +imply_option("--enable-crashreporter", False) +imply_option("--enable-unverified-updates", False) +imply_option("--enable-proxy-bypass-protection", True) + +# tor-browser#45336 +imply_option("--enable-proxy-direct-failover", False) + +# See tor-browser#30575 and tor-browser#32418: system policies are harmful either +# because they could allow proxy bypass, and override a number of other preferences we set +imply_option("--enable-system-policies", False) + +# tor-browser#44394 +imply_option( + "--enable-system-preferences", + False, + when=depends(build_project)(lambda p: p == "browser"), +) + +# tor-browser#13379 +imply_option("--enable-nss-mar", True, when=target_is_windows | target_is_osx) + +# tor-browser#41131 +imply_option("--enable-update-agent", False, when=target_is_windows | target_is_osx) +imply_option("--enable-bits-download", False, when=target_is_windows) +imply_option("--enable-maintenance-service", False, when=target_is_windows) +imply_option("--enable-default-browser-agent", False, when=target_is_windows) ===================================== mobile/android/confvars.sh ===================================== @@ -2,6 +2,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -MOZ_BRANDING_DIRECTORY=mobile/android/branding/unofficial +# Tor Browser: Use the nightly branding by default. Official builds always +# pass --with-branding. See tor-browser#45396. +MOZ_BRANDING_DIRECTORY=mobile/android/branding/tb-nightly MOZ_OFFICIAL_BRANDING_DIRECTORY=mobile/android/branding/official # MOZ_APP_DISPLAYNAME is set by branding/configure.sh ===================================== moz.configure ===================================== @@ -246,6 +246,7 @@ def check_prog(*args, **kwargs): include("build/moz.configure/toolchain.configure", when="--enable-compile-environment") +include("build/moz.configure/basebrowser.configure") include("build/moz.configure/basebrowser-resources.configure") include("build/moz.configure/torbrowser-resources.configure") @@ -989,9 +990,22 @@ with only_when(cross_compiling): ) set_config("JS_BINARY", depends_if("JS_BINARY")(lambda value: value[0])) + +# Base Browser: Make the data directory relative to the application by +# default. See tor-browser#9173. +@depends(target) +def relative_data_dir_default(target): + if target.os == "Android": + return None + if target.os == "OSX": + return "../TorBrowser-Data/Browser" + return "TorBrowser/Data/Browser" + + option( "--with-relative-data-dir", nargs=1, + default=relative_data_dir_default, help="Sets the data directories to be relative to the application directory", ) @@ -1035,9 +1049,7 @@ def base_browser_version_quoted(value): return f'"{value[0]}"' -set_config( - "BASE_BROWSER", depends(base_browser_version)(lambda v: True if v else False) -) +set_config("BASE_BROWSER", True) set_define("BASE_BROWSER_VERSION", base_browser_version) set_define("BASE_BROWSER_VERSION_QUOTED", base_browser_version_quoted) ===================================== mozconfig-android-aarch64 ===================================== @@ -1,4 +1,10 @@ -. $topsrcdir/browser/config/mozconfigs/tor-browser-android +# This file is deprecated and will be removed, see tor-browser#45396. -mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-aarch64-linux-android -ac_add_options --target=aarch64-linux-android +echo "mozconfig-android-aarch64 has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --enable-project=mobile/android" >&2 +echo " ac_add_options --target=aarch64-linux-android" >&2 +exit 1 ===================================== mozconfig-android-all ===================================== @@ -1,39 +1,9 @@ -# Changes on this file might need to be synchronized with -# browser/config/mozconfigs/base-browser-android! -# See also tor-browser#43151. - -export MOZILLA_OFFICIAL=1 - -ac_add_options --enable-application=mobile/android - -ac_add_options --disable-compile-environment - -ac_add_options --disable-tests -ac_add_options --disable-debug - -ac_add_options --disable-updater -ac_add_options --disable-crashreporter -ac_add_options --disable-webrtc -ac_add_options --disable-parental-controls - -ac_add_options --enable-proxy-bypass-protection -ac_add_options --disable-system-policies - -# See tor-browser#41131 -ac_add_options --disable-backgroundtasks - -ac_add_options --enable-minify=properties,js - -# Disable telemetry -ac_add_options MOZ_TELEMETRY_REPORTING= - -if test -n "$LOCAL_DEV_BUILD"; then - # You must use the "default" bogus channel for dev builds - ac_add_options --enable-update-channel=default - ac_add_options --with-base-browser-version=dev-build - ac_add_options --disable-minify -fi - -if test -z "$WASI_SYSROOT"; then - ac_add_options --without-wasm-sandboxed-libraries -fi +# This file is deprecated and will be removed, see tor-browser#45396. + +echo "mozconfig-android-all has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --enable-project=mobile/android" >&2 +exit 1 ===================================== mozconfig-android-armv7 ===================================== @@ -1,4 +1,10 @@ -. $topsrcdir/browser/config/mozconfigs/tor-browser-android +# This file is deprecated and will be removed, see tor-browser#45396. -mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-arm-linux-androideabi -ac_add_options --target=arm-linux-androideabi +echo "mozconfig-android-armv7 has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --enable-project=mobile/android" >&2 +echo " ac_add_options --target=arm-linux-androideabi" >&2 +exit 1 ===================================== mozconfig-android-x86 ===================================== @@ -1,4 +1,10 @@ -. $topsrcdir/browser/config/mozconfigs/tor-browser-android +# This file is deprecated and will be removed, see tor-browser#45396. -mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-i386-linux-android -ac_add_options --target=i686-linux-android +echo "mozconfig-android-x86 has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --enable-project=mobile/android" >&2 +echo " ac_add_options --target=i686-linux-android" >&2 +exit 1 ===================================== mozconfig-android-x86_64 ===================================== @@ -1,4 +1,10 @@ -. $topsrcdir/browser/config/mozconfigs/tor-browser-android +# This file is deprecated and will be removed, see tor-browser#45396. -mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-x86_64-linux-android -ac_add_options --target=x86_64-linux-android +echo "mozconfig-android-x86_64 has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --enable-project=mobile/android" >&2 +echo " ac_add_options --target=x86_64-linux-android" >&2 +exit 1 ===================================== mozconfig-linux-aarch64 ===================================== @@ -1,12 +1,9 @@ -. $topsrcdir/browser/config/mozconfigs/tor-browser - -ac_add_options --target=aarch64-unknown-linux-gnu - -# Moz switched to lld for all Linux targets in Bug 1839739. -ac_add_options --enable-linker=lld - -ac_add_options --disable-strip -ac_add_options --disable-install-strip - -ac_add_options --enable-default-toolkit=cairo-gtk3 - +# This file is deprecated and will be removed, see tor-browser#45396. + +echo "mozconfig-linux-aarch64 has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --target=aarch64-unknown-linux-gnu" >&2 +exit 1 ===================================== mozconfig-linux-aarch64-dev ===================================== @@ -1,25 +1,9 @@ -. $topsrcdir/browser/config/mozconfigs/tor-browser - -# This mozconfig file is not used in official builds. -# It is only intended to be used when doing incremental Linux builds -# during development. - -# Moz switched to lld for all Linux targets in Bug 1839739. -ac_add_options --enable-linker=lld - -# Disable LTO for dev builds, even though other optimizations are enabled. -ac_add_options --disable-lto - -export MOZILLA_OFFICIAL= -export MOZ_APP_REMOTINGNAME="Tor Browser Dev" -ac_add_options --with-branding=browser/branding/tb-nightly - -ac_add_options --enable-default-toolkit=cairo-gtk3 - -ac_add_options --disable-strip -ac_add_options --disable-install-strip - -ac_add_options --with-base-browser-version=dev-build -ac_add_options --disable-base-browser-update - -ac_add_options --enable-tests +# This file is deprecated and will be removed, see tor-browser#45396. + +echo "mozconfig-linux-aarch64-dev has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --target=aarch64-unknown-linux-gnu" >&2 +exit 1 ===================================== mozconfig-linux-arm deleted ===================================== @@ -1,18 +0,0 @@ -. $topsrcdir/browser/config/mozconfigs/tor-browser - -ac_add_options --target=arm-linux-gnueabihf - -ac_add_options --enable-default-toolkit=cairo-gtk3 - -# Bug 31448: ld.gold fails if we don't disable debug-symbols. -# Also, we keep strip enabled. -ac_add_options --disable-debug-symbols - -# From Arch Linux ARM for Firefox 102.0.1 -# https://github.com/archlinuxarm/PKGBUILDs/blob/6da804f4020487c112f59ea067e6… -ac_add_options --disable-elf-hack -ac_add_options --disable-av1 -ac_add_options --enable-optimize="-g0 -O2" -# One of the following two lines (not sure which) prevents "read-only segment has dynamic relocations" linker error. -export MOZ_DEBUG_FLAGS=" " -export RUSTFLAGS="-Cdebuginfo=0" ===================================== mozconfig-linux-x86_64 ===================================== @@ -1,15 +1,7 @@ -. $topsrcdir/browser/config/mozconfigs/tor-browser +# This file is deprecated and will be removed, see tor-browser#45396. -# Moz switched to lld for all Linux targets in Bug 1839739. -ac_add_options --enable-linker=lld - -ac_add_options --disable-strip -ac_add_options --disable-install-strip - -ac_add_options --enable-default-toolkit=cairo-gtk3 - -# Let's make sure no preference is enabling either Adobe's or Google's CDM. -ac_add_options --disable-eme - -# tor-browser#44067: geckodriver has become a host-only tool -ac_add_options --enable-geckodriver +echo "mozconfig-linux-x86_64 has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +exit 1 ===================================== mozconfig-linux-x86_64-asan deleted ===================================== @@ -1,26 +0,0 @@ -. $topsrcdir/browser/config/mozconfigs/tor-browser - -export CFLAGS="-fsanitize=address -Dxmalloc=myxmalloc" -export CXXFLAGS="-fsanitize=address -Dxmalloc=myxmalloc" -# We need to add -ldl explicitely due to bug 1213698 -export LDFLAGS="-fsanitize=address -ldl" - -# Define HOST_CFLAGS, etc. to avoid compiling programs such as mbsdiff -# (which is part of mar-tools and is not distributed to end-users) with -# ASan. See bug 17858. -export HOST_CFLAGS="" -export HOST_CXXFLAGS="" -export HOST_LDFLAGS="-ldl" - -ac_add_options --enable-address-sanitizer -ac_add_options --disable-jemalloc -ac_add_options --disable-elf-hack - -ac_add_options --enable-default-toolkit=cairo-gtk3 - -ac_add_options --disable-strip -ac_add_options --disable-install-strip - -# Let's make sure no preference is enabling either Adobe's or Google's CDM. -ac_add_options --disable-eme - ===================================== mozconfig-linux-x86_64-dev ===================================== @@ -1,28 +1,7 @@ -. $topsrcdir/browser/config/mozconfigs/tor-browser +# This file is deprecated and will be removed, see tor-browser#45396. -# This mozconfig file is not used in official builds. -# It is only intended to be used when doing incremental Linux builds -# during development. - -# Moz switched to lld for all Linux targets in Bug 1839739. -ac_add_options --enable-linker=lld - -# Disable LTO for dev builds, even though other optimizations are enabled. -ac_add_options --disable-lto - -export MOZILLA_OFFICIAL= -export MOZ_APP_REMOTINGNAME="Tor Browser Dev" -ac_add_options --with-branding=browser/branding/tb-nightly - -ac_add_options --enable-default-toolkit=cairo-gtk3 - -ac_add_options --disable-strip -ac_add_options --disable-install-strip - -ac_add_options --with-base-browser-version=dev-build -ac_add_options --disable-base-browser-update - -# Let's make sure no preference is enabling either Adobe's or Google's CDM. -ac_add_options --disable-eme - -ac_add_options --enable-tests +echo "mozconfig-linux-x86_64-dev has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +exit 1 ===================================== mozconfig-macos ===================================== @@ -1,14 +1,7 @@ -. $topsrcdir/browser/config/mozconfigs/tor-browser +# This file is deprecated and will be removed, see tor-browser#45396. -ac_add_options --enable-strip - -# See bug #13379 -ac_add_options --enable-nss-mar - -# See bug #41131 -ac_add_options --disable-update-agent - -# Let's make sure no preference is enabling either Adobe's or Google's CDM. -ac_add_options --disable-eme - -ac_add_options --with-relative-data-dir=../TorBrowser-Data/Browser +echo "mozconfig-macos has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +exit 1 ===================================== mozconfig-macos-dev ===================================== @@ -1,32 +1,7 @@ -. $topsrcdir/browser/config/mozconfigs/tor-browser +# This file is deprecated and will be removed, see tor-browser#45396. -# This mozconfig file is not used in official builds. -# It is only intended to be used when doing incremental macOS builds -# during development. - -# Disable LTO for dev builds, even though other optimizations are enabled. -ac_add_options --disable-lto - -export MOZILLA_OFFICIAL= - -ac_add_options --disable-strip -ac_add_options --disable-install-strip - -ac_add_options --with-base-browser-version=dev-build - -ac_add_options --disable-base-browser-update -# See bug #13379 -ac_add_options --enable-nss-mar -# See bug #41131 -ac_add_options --disable-update-agent - -# Let's make sure no preference is enabling either Adobe's or Google's CDM. -ac_add_options --disable-eme - -ac_add_options --enable-tests - -ac_add_options --with-relative-data-dir=../TorBrowser-Data/Browser - -#copied from the diff between mozconfig-linux-x86_64 and mozconfig-linux-x86_64-dev -export MOZ_APP_REMOTINGNAME="Tor Browser Dev" -ac_add_options --with-branding=browser/branding/tb-nightly +echo "mozconfig-macos-dev has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +exit 1 ===================================== mozconfig-windows-i686 ===================================== @@ -1,27 +1,9 @@ -. $topsrcdir/browser/config/mozconfigs/tor-browser - -ac_add_options --target=i686-pc-windows-gnu -ac_add_options --with-toolchain-prefix=i686-w64-mingw32- - -ac_add_options --enable-strip - -# Bits is Background Intelligent Transfer Service -ac_add_options --disable-bits-download -ac_add_options --disable-maintenance-service -ac_add_options --disable-default-browser-agent - -# See bug #13379 -ac_add_options --enable-nss-mar - -# See bug #41131 -ac_add_options --disable-update-agent - -# Bug 1782837: Not supported because Mozilla (and therefore also us) build -# libc++ with LIBCXX_ENABLE_FILESYSTEM disabled. -ac_add_options --disable-notification-server - -# Let's make sure no preference is enabling either Adobe's or Google's CDM. -ac_add_options --disable-eme - -# tor-browser#44028: Disable zucchini for now, as it needs SEH. -ac_add_options --disable-zucchini +# This file is deprecated and will be removed, see tor-browser#45396. + +echo "mozconfig-windows-i686 has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --target=i686-pc-windows-gnu" >&2 +exit 1 ===================================== mozconfig-windows-x86_64 ===================================== @@ -1,27 +1,9 @@ -. $topsrcdir/browser/config/mozconfigs/tor-browser - -ac_add_options --target=x86_64-pc-windows-gnu -ac_add_options --with-toolchain-prefix=x86_64-w64-mingw32- - -ac_add_options --enable-strip - -# Bits is Background Intelligent Transfer Service -ac_add_options --disable-bits-download -ac_add_options --disable-maintenance-service -ac_add_options --disable-default-browser-agent - -# See bug #13379 -ac_add_options --enable-nss-mar - -# See bug #41131 -ac_add_options --disable-update-agent - -# Bug 1782837: Not supported because Mozilla (and therefore also us) build -# libc++ with LIBCXX_ENABLE_FILESYSTEM disabled. -ac_add_options --disable-notification-server - -# Let's make sure no preference is enabling either Adobe's or Google's CDM. -ac_add_options --disable-eme - -# tor-browser#44028: Disable zucchini for now, as it needs SEH. -ac_add_options --disable-zucchini +# This file is deprecated and will be removed, see tor-browser#45396. + +echo "mozconfig-windows-x86_64 has been removed, see tor-browser#45396." >&2 +echo "Your mozconfig no longer needs to source one from this repository." >&2 +echo "Run ./mach bootstrap to generate a mozconfig, or write one with this line:" >&2 +echo " ac_add_options --with-base-browser-version=dev-build" >&2 +echo "and, for this platform:" >&2 +echo " ac_add_options --target=x86_64-pc-windows-gnu" >&2 +exit 1 ===================================== python/mozboot/mozboot/bootstrap.py ===================================== @@ -724,6 +724,7 @@ class Bootstrapper: self._write_default_mozconfig(expected_raw_mozconfig) def _output_mozconfig(self, application, mozconfig_builder): + mozconfig_builder.append("ac_add_options --with-base-browser-version=dev-build") # Like 'generate_browser_mozconfig' or 'generate_mobile_android_mozconfig'. additional_mozconfig = getattr( self.instance, "generate_%s_mozconfig" % application ===================================== toolkit/moz.configure ===================================== @@ -87,7 +87,10 @@ set_config("MOZ_INCLUDE_SOURCE_INFO", True, when="MOZ_INCLUDE_SOURCE_INFO") option( "--with-distribution-id", nargs=1, - default="org.mozilla", + # Tor Browser: Use our distribution ID by default on desktop. + default=depends(build_project)( + lambda p: "org.torproject" if p == "browser" else "org.mozilla" + ), help="Set distribution-specific id", ) set_config("MOZ_DISTRIBUTION_ID", depends("--with-distribution-id")(lambda v: v[0])) @@ -947,11 +950,11 @@ def eme_choices(target, wmf): return ("widevine",) -# Widevine is enabled by default in desktop browser builds. +# Base Browser: Disable EME by default, to make sure no preference is +# enabling either Adobe's or Google's CDM. @depends(build_project, eme_choices) def eme_default(build_project, choices): - if build_project == "browser": - return choices + return None option( @@ -1488,9 +1491,11 @@ def webrtc_default(target): return os_match and cpu_match and target.endianness == "little" +# Base Browser: Disable WebRTC by default. +# Before enabling, please notice that WebRTC does not work on mingw (Bug 1393901) option( "--disable-webrtc", - default=webrtc_default, + default=False, help="{Enable|Disable} support for WebRTC", ) @@ -2207,7 +2212,8 @@ set_config( @depends(target) def bundled_fonts_default(target): - return target.os == "WINNT" or target.kernel == "Linux" + # Base Browser: Enable bundled fonts on all desktop platforms. + return True @depends(build_project) @@ -3178,9 +3184,12 @@ include("../build/moz.configure/nss.configure") # Enable or disable running in background task mode: headless for # periodic, short-lived, maintenance tasks. # ============================================================================== +# Base Browser: Disable background tasks by default. +# See tor-browser#41131. option( "--disable-backgroundtasks", - help="Disable running in background task mode", + default=False, + help="{Enable|Disable} running in background task mode", ) set_config("MOZ_BACKGROUNDTASKS", True, when="--enable-backgroundtasks") set_define("MOZ_BACKGROUNDTASKS", True, when="--enable-backgroundtasks") @@ -3661,7 +3670,13 @@ set_define("MOZ_AUTH_EXTENSION", True, when="--enable-negotiateauth") # Parental control # ============================================================== -option("--disable-parental-controls", help="Do not build parental controls") +# Base Browser: Do not build parental controls by default. +# See tor-browser#33851. +option( + "--disable-parental-controls", + default=False, + help="{Build|Do not build} parental controls", +) set_config( "MOZ_DISABLE_PARENTAL_CONTROLS", @@ -4341,10 +4356,13 @@ set_define("MOZ_SYSTEM_PREFERENCES", True, when="--enable-system-preferences") # Allow disabling the creation a legacy profile # ============================================================== +# Base Browser: Do not create a legacy profile by default on desktop. +# See tor-browser#41542. option( "--disable-legacy-profile-creation", - help="Disable the creation a legacy profile, to be used by old versions " - "of Firefox, when no profiles exist", + default=depends(build_project)(lambda p: p != "browser"), + help="{Enable|Disable} the creation a legacy profile, to be used by old " + "versions of Firefox, when no profiles exist", ) set_config("MOZ_CREATE_LEGACY_PROFILE", True, when="--enable-legacy-profile-creation") View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/64100c… -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/64100c… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
[Git][tpo/applications/tor-browser-build][maint-16.0] Bug 41916: Mention zlib updates only in the relevant platforms.
by Pier Angelo Vendrame (@pierov) 16 Nov '26

16 Nov '26
Pier Angelo Vendrame pushed to branch maint-16.0 at The Tor Project / Applications / tor-browser-build Commits: e819c5da by Pier Angelo Vendrame at 2026-11-16T14:10:43+01:00 Bug 41916: Mention zlib updates only in the relevant platforms. We ship zlib only in Windows and Android binaries (where we static link tor to it), therefore we should list it in the "Windows + Android" section of the changelogs. - - - - - 1 changed file: - tools/fetch_changelogs.py Changes: ===================================== tools/fetch_changelogs.py ===================================== @@ -88,7 +88,13 @@ class UpdateEntry(ChangelogEntry): num_platforms = 1 elif name == "Go": platform = Platform.ALL_PLATFORMS ^ Platform.MACOS - num_platforms = 1 + num_platforms = 3 + elif name == "zlib": + # For cross-compilation issues, we use our zlib to build + # also on Linux aarch64, but then we do not ship it. + # So, do not include it in the changelogs. + platform = Platform.WINDOWS | Platform.ANDROID + num_platforms = 2 else: platform = Platform.ALL_PLATFORMS num_platforms = 4 View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/e… -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/e… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
[Git][tpo/applications/tor-browser-build][main] Bug 41916: Mention zlib updates only in the relevant platforms.
by Pier Angelo Vendrame (@pierov) 16 Nov '26

16 Nov '26
Pier Angelo Vendrame pushed to branch main at The Tor Project / Applications / tor-browser-build Commits: 972e6121 by Pier Angelo Vendrame at 2026-11-16T13:04:28+01:00 Bug 41916: Mention zlib updates only in the relevant platforms. We ship zlib only in Windows and Android binaries (where we static link tor to it), therefore we should list it in the "Windows + Android" section of the changelogs. - - - - - 1 changed file: - tools/fetch_changelogs.py Changes: ===================================== tools/fetch_changelogs.py ===================================== @@ -88,7 +88,13 @@ class UpdateEntry(ChangelogEntry): num_platforms = 1 elif name == "Go": platform = Platform.ALL_PLATFORMS ^ Platform.MACOS - num_platforms = 1 + num_platforms = 3 + elif name == "zlib": + # For cross-compilation issues, we use our zlib to build + # also on Linux aarch64, but then we do not ship it. + # So, do not include it in the changelogs. + platform = Platform.WINDOWS | Platform.ANDROID + num_platforms = 2 else: platform = Platform.ALL_PLATFORMS num_platforms = 4 View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/9… -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/9… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
[Git][tpo/applications/mullvad-browser][mullvad-browser-153.7.0esr-16.0-1] 3 commits: fixup! Mullvad Browser Strings
by morgan (@morgan) 13 Nov '26

13 Nov '26
morgan pushed to branch mullvad-browser-153.7.0esr-16.0-1 at The Tor Project / Applications / Mullvad Browser Commits: 80298bc8 by june wilde at 2026-11-13T09:22:33+00:00 fixup! Mullvad Browser Strings MB 594: Update relevant neterror page when Quad9 DoH resolution fails - - - - - 16654999 by june wilde at 2026-11-13T09:22:34+00:00 fixup! MB 38: Mullvad Browser configuration MB 593: Re-Add Cloudflare as available DoH provider in about:settings - - - - - 1b4b5ec7 by june wilde at 2026-11-13T09:22:34+00:00 MB 594: Add Quad9 resolution guidance to about:neterror - - - - - 3 changed files: - browser/app/profile/000-mullvad-browser.js - toolkit/content/aboutNetError.html - toolkit/locales/en-US/toolkit/global/mullvad-browser.ftl Changes: ===================================== browser/app/profile/000-mullvad-browser.js ===================================== @@ -14,7 +14,7 @@ pref("browser.toolbars.bookmarks.visibility", "never"); pref("network.trr.uri", "https://doh-mullvad.quad9.net/dns-query"); pref("network.trr.default_provider_uri", "https://doh-mullvad.quad9.net/dns-query"); pref("network.trr.mode", 3); -pref("doh-rollout.provider-list", "[{\"uri\":\"https://doh-mullvad.quad9.net/dns-query\",\"UIName\":\"Quad9 - no threat blocking\",\"schema\":0,\"autoDefault\":false,\"canonicalName\":\"\",\"id\":\"quad9-no-threat-blocking\",\"last_modified\":0},{\"uri\":\"https://dns.quad9.net/dns-query\",\"UIName\":\"Quad9 - secure: threat blocking\",\"schema\":0,\"autoDefault\":true,\"canonicalName\":\"\",\"id\":\"quad9-threat-blocking\",\"last_modified\":0}]"); +pref("doh-rollout.provider-list", "[{\"uri\":\"https://doh-mullvad.quad9.net/dns-query\",\"UIName\":\"Quad9 - no threat blocking\",\"schema\":0,\"autoDefault\":false,\"canonicalName\":\"\",\"id\":\"quad9-no-threat-blocking\",\"last_modified\":0},{\"uri\":\"https://dns.quad9.net/dns-query\",\"UIName\":\"Quad9 - secure: threat blocking\",\"schema\":0,\"autoDefault\":true,\"canonicalName\":\"\",\"id\":\"quad9-threat-blocking\",\"last_modified\":0},{\"uri\":\"https://cloudflare-dns.com/dns-query\",\"UIName\":\"Cloudflare\",\"schema\":0,\"autoDefault\":false,\"canonicalName\":\"\",\"id\":\"cloudflare\",\"last_modified\":0}]"); // mullvad-browser#122: Audit DoH heuristics pref("doh-rollout.disable-heuristics", true); // mullvad-browser#537: migrate users from Mullvad DoH service. ===================================== toolkit/content/aboutNetError.html ===================================== @@ -21,6 +21,7 @@ <link rel="localization" href="toolkit/neterror/certError.ftl" /> <link rel="localization" href="toolkit/neterror/netError.ftl" /> <link rel="localization" href="toolkit/neterror/nsserrors.ftl" /> + <link rel="localization" href="toolkit/global/mullvad-browser.ftl" /> </head> <body> <div class="container"> @@ -60,6 +61,7 @@ </p> </div> <p data-l10n-id="neterror-dns-not-found-trr-third-party-warning2"></p> + <p data-l10n-id="mullvad-quad9-france-dns-error-warning"></p> </div> <p id="tlsVersionNotice" hidden=""></p> ===================================== toolkit/locales/en-US/toolkit/global/mullvad-browser.ftl ===================================== @@ -55,3 +55,8 @@ mullvad-preferences-doh-radio-off = mullvad-doh-notification-body = <strong>Your default DNS Over HTTPS settings have been changed.</strong> Mullvad secure DNS service is being discontinued. mullvad-doh-notification-settings-button = .label = Review settings + +## DNS over HTTPS migration notification for french quad9 users + +# The first sentence should be wrapped in '<strong>' and '</strong>'. +mullvad-quad9-france-dns-error-warning = 🇫🇷 <strong>Are you in France?</strong> You might need to change your DNS provider to Cloudflare in the DNS settings. View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/7c… -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/7c… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
[Git][tpo/applications/mullvad-browser][mullvad-browser-156.0a1-17.0-2] 3 commits: fixup! Mullvad Browser Strings
by morgan (@morgan) 13 Nov '26

13 Nov '26
morgan pushed to branch mullvad-browser-156.0a1-17.0-2 at The Tor Project / Applications / Mullvad Browser Commits: 58bb9a61 by june wilde at 2026-11-13T09:20:32+00:00 fixup! Mullvad Browser Strings MB 594: Update relevant neterror page when Quad9 DoH resolution fails - - - - - 4370706f by june wilde at 2026-11-13T09:20:33+00:00 fixup! MB 38: Mullvad Browser configuration MB 593: Re-Add Cloudflare as available DoH provider in about:settings - - - - - 11c3f7dc by june wilde at 2026-11-13T09:20:33+00:00 MB 594: Add Quad9 resolution guidance to about:neterror - - - - - 3 changed files: - browser/app/profile/000-mullvad-browser.js - toolkit/content/aboutNetError.html - toolkit/locales/en-US/toolkit/global/mullvad-browser.ftl Changes: ===================================== browser/app/profile/000-mullvad-browser.js ===================================== @@ -14,7 +14,7 @@ pref("browser.toolbars.bookmarks.visibility", "never"); pref("network.trr.uri", "https://doh-mullvad.quad9.net/dns-query"); pref("network.trr.default_provider_uri", "https://doh-mullvad.quad9.net/dns-query"); pref("network.trr.mode", 3); -pref("doh-rollout.provider-list", "[{\"uri\":\"https://doh-mullvad.quad9.net/dns-query\",\"UIName\":\"Quad9 - no threat blocking\",\"schema\":0,\"autoDefault\":false,\"canonicalName\":\"\",\"id\":\"quad9-no-threat-blocking\",\"last_modified\":0},{\"uri\":\"https://dns.quad9.net/dns-query\",\"UIName\":\"Quad9 - secure: threat blocking\",\"schema\":0,\"autoDefault\":true,\"canonicalName\":\"\",\"id\":\"quad9-threat-blocking\",\"last_modified\":0}]"); +pref("doh-rollout.provider-list", "[{\"uri\":\"https://doh-mullvad.quad9.net/dns-query\",\"UIName\":\"Quad9 - no threat blocking\",\"schema\":0,\"autoDefault\":false,\"canonicalName\":\"\",\"id\":\"quad9-no-threat-blocking\",\"last_modified\":0},{\"uri\":\"https://dns.quad9.net/dns-query\",\"UIName\":\"Quad9 - secure: threat blocking\",\"schema\":0,\"autoDefault\":true,\"canonicalName\":\"\",\"id\":\"quad9-threat-blocking\",\"last_modified\":0},{\"uri\":\"https://cloudflare-dns.com/dns-query\",\"UIName\":\"Cloudflare\",\"schema\":0,\"autoDefault\":false,\"canonicalName\":\"\",\"id\":\"cloudflare\",\"last_modified\":0}]"); // mullvad-browser#122: Audit DoH heuristics pref("doh-rollout.disable-heuristics", true); // mullvad-browser#537: migrate users from Mullvad DoH service. ===================================== toolkit/content/aboutNetError.html ===================================== @@ -23,6 +23,7 @@ <link rel="localization" href="toolkit/global/mozMessageBar.ftl" /> <link rel="localization" href="toolkit/global/mozSupportLink.ftl" /> <link rel="localization" href="toolkit/neterror/nsserrors.ftl" /> + <link rel="localization" href="toolkit/global/mullvad-browser.ftl" /> </head> <body> <moz-message-bar @@ -70,6 +71,7 @@ </p> </div> <p data-l10n-id="neterror-dns-not-found-trr-third-party-warning2"></p> + <p data-l10n-id="mullvad-quad9-france-dns-error-warning"></p> </div> <p id="tlsVersionNotice" hidden=""></p> ===================================== toolkit/locales/en-US/toolkit/global/mullvad-browser.ftl ===================================== @@ -55,3 +55,8 @@ mullvad-preferences-doh-radio-off = mullvad-doh-notification-body = <strong>Your default DNS Over HTTPS settings have been changed.</strong> Mullvad secure DNS service is being discontinued. mullvad-doh-notification-settings-button = .label = Review settings + +## DNS over HTTPS migration notification for french quad9 users + +# The first sentence should be wrapped in '<strong>' and '</strong>'. +mullvad-quad9-france-dns-error-warning = 🇫🇷 <strong>Are you in France?</strong> You might need to change your DNS provider to Cloudflare in the DNS settings. View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/00… -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/00… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
  • ← Newer
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • ...
  • 2142
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.