Skip to content
Snippets Groups Projects
Commit 0529b250 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern: Committed by Richard Pospesel
Browse files

fixup! TB3: Tor Browser's official .mozconfigs.

Restore the changes taken away earlier.
parent 63f3e3ab
No related branches found
No related tags found
1 merge request!580Rebase Tor Browser Alpha to 102.9.0esr
......@@ -1044,6 +1044,30 @@ def relative_data_dir(value, target):
set_define("RELATIVE_DATA_DIR", relative_data_dir)
# 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)
option(
"--enable-tor-browser-update",
help="Enable Tor Browser update"
)
@depends("--enable-tor-browser-update")
def tor_browser_update(value):
if value:
return True
set_config("TOR_BROWSER_UPDATE", tor_browser_update)
set_define("TOR_BROWSER_UPDATE", tor_browser_update)
add_old_configure_assignment("TOR_BROWSER_UPDATE", tor_browser_update)
# Please do not add configure checks from here on.
# Fallthrough to autoconf-based configure
......
......
......@@ -6,4 +6,3 @@ ac_add_options --enable-strip
ac_add_options --disable-update-agent
ac_add_options --with-relative-data-dir=../TorBrowser-Data/Browser
ac_add_options --enable-tor-browser-data-outside-app-dir
......@@ -460,6 +460,13 @@ this.AppConstants = Object.freeze({
false,
#endif
TOR_BROWSER_UPDATE:
#ifdef TOR_BROWSER_UPDATE
true,
#else
false,
#endif
// Returns true for CN region build when distibution id set as 'MozillaOnline'
isChinaRepack() {
return (
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment