Skip to content
Snippets Groups Projects
Verified Commit 2921a0f2 authored by Mike Perry's avatar Mike Perry Committed by Pier Angelo Vendrame
Browse files

TB3: Tor Browser's official .mozconfigs.

Also:
Add an --enable-tor-browser-data-outside-app-dir configure option

Add --with-tor-browser-version configure option

Bug 31457: disable per-installation profiles

The dedicated profiles (per-installation) feature does not interact
well with our bundled profiles on Linux and Windows, and it also causes
multiple profiles to be created on macOS under TorBrowser-Data.

Bug 31935: Disable profile downgrade protection.

Since Tor Browser does not support more than one profile, disable
the prompt and associated code that offers to create one when a
version downgrade situation is detected.

Add --enable-tor-browser-update build option

Bug 40793: moved Tor configuration options from old-configure.in to moz.configure

Bug 41584: Move some configuration options to base-browser level
parent c1589b9a
No related branches found
No related tags found
1 merge request!815Rebased onto Firefox 115.3.1esr
Showing
with 58 additions and 29 deletions
......@@ -19,9 +19,6 @@ ac_add_options --enable-base-browser-update
ac_add_options --enable-bundled-fonts
# See bug #41587
ac_add_options --disable-updater
ac_add_options --disable-tests
ac_add_options --disable-debug
......@@ -49,5 +46,3 @@ ac_add_options --disable-legacy-profile-creation
if test -z "$WASI_SYSROOT"; then
ac_add_options --without-wasm-sandboxed-libraries
fi
ac_add_options --with-relative-data-dir=BaseBrowser/Data/Browser
. $topsrcdir/browser/config/mozconfigs/base-browser
mk_add_options MOZ_APP_DISPLAYNAME="Tor Browser"
# 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
. $topsrcdir/browser/config/mozconfigs/base-browser-android
mk_add_options MOZ_APP_DISPLAYNAME="Tor Browser"
......@@ -8,8 +8,8 @@ imply_option("MOZ_PLACES", True)
# tor-browser#32493
imply_option("MOZ_SERVICES_HEALTHREPORT", False)
imply_option("MOZ_SERVICES_SYNC", True)
imply_option("MOZ_DEDICATED_PROFILES", True)
imply_option("MOZ_BLOCK_PROFILE_DOWNGRADE", True)
imply_option("MOZ_DEDICATED_PROFILES", False)
imply_option("MOZ_BLOCK_PROFILE_DOWNGRADE", False)
# tor-browser#33734
imply_option("MOZ_NORMANDY", False)
......
......@@ -46,6 +46,7 @@ android {
buildConfigField 'String', "MOZ_APP_DISPLAYNAME", "\"${mozconfig.substs.MOZ_APP_DISPLAYNAME}\"";
buildConfigField 'String', "MOZ_APP_UA_NAME", "\"${mozconfig.substs.MOZ_APP_UA_NAME}\"";
buildConfigField 'String', "MOZ_UPDATE_CHANNEL", "\"${mozconfig.substs.MOZ_UPDATE_CHANNEL}\"";
buildConfigField 'boolean', "TOR_BROWSER", mozconfig.substs.TOR_BROWSER ? 'true' : 'false';
// MOZILLA_VERSION is oddly quoted from autoconf, but we don't have to handle it specially in Gradle.
buildConfigField 'String', "MOZILLA_VERSION", "\"${mozconfig.substs.MOZILLA_VERSION}\"";
......
......@@ -980,6 +980,13 @@ set_define("BASE_BROWSER_VERSION", base_browser_version)
set_define("BASE_BROWSER_VERSION_QUOTED", base_browser_version_quoted)
# Tor Browser additions.
# We always want Tor Browser to be defined. Since we do not need any
# value for it, just always set it to True.
set_define("TOR_BROWSER", True)
# Please do not add configure checks from here on.
# Fallthrough to autoconf-based configure
......
. $topsrcdir/browser/config/mozconfigs/base-browser-android
. $topsrcdir/browser/config/mozconfigs/tor-browser-android
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-aarch64-linux-android
ac_add_options --target=aarch64-linux-android
......@@ -13,8 +13,6 @@ if test -n "$LOCAL_DEV_BUILD"; then
ac_add_options --with-base-browser-version=dev-build
fi
ac_add_options --with-tor-browser-version=dev-build
ac_add_options --with-java-bin-path=$JAVA_HOME/bin
ac_add_options --with-android-sdk=$ANDROID_HOME
ac_add_options --with-gradle=$GRADLE_HOME/bin/gradle
. $topsrcdir/browser/config/mozconfigs/base-browser-android
. $topsrcdir/browser/config/mozconfigs/tor-browser-android
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-arm-linux-androideabi
ac_add_options --target=arm-linux-androideabi
. $topsrcdir/browser/config/mozconfigs/base-browser-android
. $topsrcdir/browser/config/mozconfigs/tor-browser-android
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-i386-linux-android
ac_add_options --target=i686-linux-android
. $topsrcdir/browser/config/mozconfigs/base-browser-android
. $topsrcdir/browser/config/mozconfigs/tor-browser-android
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-x86_64-linux-android
ac_add_options --target=x86_64-linux-android
. $topsrcdir/browser/config/mozconfigs/base-browser
. $topsrcdir/browser/config/mozconfigs/tor-browser
ac_add_options --target=arm-linux-gnueabihf
......
. $topsrcdir/browser/config/mozconfigs/base-browser
. $topsrcdir/browser/config/mozconfigs/tor-browser
ac_add_options --target=i686-linux-gnu
......
. $topsrcdir/browser/config/mozconfigs/base-browser
. $topsrcdir/browser/config/mozconfigs/tor-browser
ac_add_options --enable-default-toolkit=cairo-gtk3
......
. $topsrcdir/browser/config/mozconfigs/base-browser
. $topsrcdir/browser/config/mozconfigs/tor-browser
export CFLAGS="-fsanitize=address -Dxmalloc=myxmalloc"
export CXXFLAGS="-fsanitize=address -Dxmalloc=myxmalloc"
......
. $topsrcdir/browser/config/mozconfigs/base-browser
. $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.
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
......
. $topsrcdir/browser/config/mozconfigs/base-browser
. $topsrcdir/browser/config/mozconfigs/tor-browser
ac_add_options --enable-strip
......@@ -8,5 +8,4 @@ ac_add_options --enable-nss-mar
# See bug #41131
ac_add_options --disable-update-agent
# For base-browser we do not enable portable mode on macOS.
ac_add_options --without-relative-data-dir
ac_add_options --with-relative-data-dir=../TorBrowser-Data/Browser
. $topsrcdir/browser/config/mozconfigs/base-browser
. $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 macOS builds
# during development.
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
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 MOZILLA_OFFICIAL=
export MOZ_APP_REMOTINGNAME="Tor Browser Dev"
ac_add_options --with-branding=browser/branding/tb-nightly
ac_add_options --with-base-browser-version=dev-build
ac_add_options --disable-base-browser-update
. $topsrcdir/browser/config/mozconfigs/base-browser
. $topsrcdir/browser/config/mozconfigs/tor-browser
ac_add_options --target=i686-w64-mingw32
ac_add_options --with-toolchain-prefix=i686-w64-mingw32-
......
. $topsrcdir/browser/config/mozconfigs/base-browser
. $topsrcdir/browser/config/mozconfigs/tor-browser
ac_add_options --target=x86_64-w64-mingw32
ac_add_options --with-toolchain-prefix=x86_64-w64-mingw32-
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment