Skip to content
Snippets Groups Projects
Verified Commit f72a9f9d authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

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

Restore the changes taken away earlier.
parent e68b2a5c
No related branches found
No related tags found
1 merge request!568Bug 41647 & 41657 & 41453: macro cleanup
......@@ -1067,6 +1067,30 @@ 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)
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
......@@ -469,6 +469,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