[tor-commits] [tor-browser] branch tor-browser-102.3.0esr-12.0-2 updated: Bug 41340: Enable TOR_BROWSER_NIGHTLY_BUILD features for dev and nightly builds

gitolite role git at cupani.torproject.org
Fri Oct 7 19:26:33 UTC 2022


This is an automated email from the git hooks/post-receive script.

richard pushed a commit to branch tor-browser-102.3.0esr-12.0-2
in repository tor-browser.

The following commit(s) were added to refs/heads/tor-browser-102.3.0esr-12.0-2 by this push:
     new 5b3b50e96dd6 Bug 41340: Enable TOR_BROWSER_NIGHTLY_BUILD features for dev and nightly builds
5b3b50e96dd6 is described below

commit 5b3b50e96dd65bcd3b062a83f300a4a634437651
Author: Henry Wilkes <henry at torproject.org>
AuthorDate: Fri Sep 30 15:04:37 2022 +0100

    Bug 41340: Enable TOR_BROWSER_NIGHTLY_BUILD features for dev and nightly builds
    
    tor-browser#41285: Enable fluent warnings.
---
 build/moz.configure/init.configure | 10 ++++++++++
 intl/l10n/Localization.h           |  3 ++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/build/moz.configure/init.configure b/build/moz.configure/init.configure
index a85df3393c16..e64852eb3ac0 100644
--- a/build/moz.configure/init.configure
+++ b/build/moz.configure/init.configure
@@ -1094,6 +1094,16 @@ set_define("MOZ_UPDATE_CHANNEL", update_channel)
 add_old_configure_assignment("MOZ_UPDATE_CHANNEL", update_channel)
 
 
+# Add a TOR_BROWSER_NIGHTLY_BUILD flag to use when MOZ_UPDATE_CHANNEL cannot be
+# used. For example, for the C++ preprocessor. See tor-browser#41340
+ at depends("--enable-update-channel")
+def tor_browser_nightly_build(channel):
+    if channel and channel[0] in ["default", "nightly"]:
+        return True
+
+set_define("TOR_BROWSER_NIGHTLY_BUILD", tor_browser_nightly_build)
+
+
 option(
     env="MOZBUILD_STATE_PATH",
     nargs=1,
diff --git a/intl/l10n/Localization.h b/intl/l10n/Localization.h
index 54c78f68dbe7..ebe285be4772 100644
--- a/intl/l10n/Localization.h
+++ b/intl/l10n/Localization.h
@@ -51,7 +51,8 @@ namespace intl {
       return true;
     }
 
-#if defined(NIGHTLY_BUILD) || defined(MOZ_DEV_EDITION) || defined(DEBUG)
+    // See tor-browser#41285
+#if defined(NIGHTLY_BUILD) || defined(MOZ_DEV_EDITION) || defined(DEBUG) || defined(TOR_BROWSER_NIGHTLY_BUILD)
     dom::Document* doc = nullptr;
     if (aGlobal) {
       nsPIDOMWindowInner* innerWindow = aGlobal->AsInnerWindow();

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tor-commits mailing list