git: 4fddd7270aea - main - www/firefox-esr: update to 140.3.0 (rc1)

From: Christoph Moench-Tegeder <cmt_at_FreeBSD.org>
Date: Tue, 09 Sep 2025 19:52:06 UTC
The branch main has been updated by cmt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4fddd7270aeafa79c7ef051f69b55fee2e6ac611

commit 4fddd7270aeafa79c7ef051f69b55fee2e6ac611
Author:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
AuthorDate: 2025-09-09 19:51:33 +0000
Commit:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
CommitDate: 2025-09-09 19:51:33 +0000

    www/firefox-esr: update to 140.3.0 (rc1)
    
    Release Notes (soon):
      https://www.firefox.com/en-US/firefox/140.3.0/releasenotes/
---
 www/firefox-esr/Makefile                           |  3 +--
 www/firefox-esr/distinfo                           |  6 +++---
 www/firefox-esr/files/patch-bug1874059             | 25 ----------------------
 .../files/patch-toolkit_xre_nsEmbedFunctions.cpp   | 17 ---------------
 4 files changed, 4 insertions(+), 47 deletions(-)

diff --git a/www/firefox-esr/Makefile b/www/firefox-esr/Makefile
index 9e4b5561fd17..3ad59771cd66 100644
--- a/www/firefox-esr/Makefile
+++ b/www/firefox-esr/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	firefox
-DISTVERSION=	140.2.0
-PORTREVISION=	2
+DISTVERSION=	140.3.0
 PORTEPOCH=	1
 CATEGORIES=	www wayland
 MASTER_SITES=	MOZILLA/${PORTNAME}/releases/${DISTVERSION}esr/source \
diff --git a/www/firefox-esr/distinfo b/www/firefox-esr/distinfo
index 9b2d3f0fc244..6574baceeb1a 100644
--- a/www/firefox-esr/distinfo
+++ b/www/firefox-esr/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1754937436
-SHA256 (firefox-140.2.0esr.source.tar.xz) = 956dce675c3b706d563caf07ed3ca9af632ab830be710dfd4351da78a0a2ef55
-SIZE (firefox-140.2.0esr.source.tar.xz) = 631022940
+TIMESTAMP = 1757438037
+SHA256 (firefox-140.3.0esr.source.tar.xz) = efc6eb3c93756311bd2f9db3796c0bbee6e3f182975d857284168b3dec672316
+SIZE (firefox-140.3.0esr.source.tar.xz) = 645261332
diff --git a/www/firefox-esr/files/patch-bug1874059 b/www/firefox-esr/files/patch-bug1874059
deleted file mode 100644
index 3fa954ef9def..000000000000
--- a/www/firefox-esr/files/patch-bug1874059
+++ /dev/null
@@ -1,25 +0,0 @@
-commit 56c888446600991803fd92d668349101ad4bf160
-Author: Christoph Moench-Tegeder <cmt@burggraben.net>
-Date:   Tue Feb 6 22:51:27 2024 +0100
-
-    switch to -fvisibility flags
-    
-    this fixes linkage with llvm18 (which does not like the former
-    approach via the #pragma in gcc_hidden.h
-    
-    PR: 276746
-    Submitted by: dim@
-
-diff --git build/moz.configure/toolchain.configure build/moz.configure/toolchain.configure
-index d08b748db250..4696f69153f6 100644
---- build/moz.configure/toolchain.configure
-+++ build/moz.configure/toolchain.configure
-@@ -2186,7 +2186,7 @@ set_define("_LIBCPP_HIDE_FROM_ABI", libcxx_override_visibility.hide_from_abi)
- @depends(target, build_environment)
- def visibility_flags(target, env):
-     if target.os != "WINNT":
--        if target.kernel == "Darwin":
-+        if target.kernel == "Darwin" or target.kernel == "FreeBSD":
-             return ("-fvisibility=hidden", "-fvisibility-inlines-hidden")
-         return (
-             "-I%s/system_wrappers" % os.path.join(env.dist),
diff --git a/www/firefox-esr/files/patch-toolkit_xre_nsEmbedFunctions.cpp b/www/firefox-esr/files/patch-toolkit_xre_nsEmbedFunctions.cpp
deleted file mode 100644
index caac874012c9..000000000000
--- a/www/firefox-esr/files/patch-toolkit_xre_nsEmbedFunctions.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
-diff --git toolkit/xre/nsEmbedFunctions.cpp toolkit/xre/nsEmbedFunctions.cpp
-index 9ce6af94637c..44165558f7ec 100644
---- toolkit/xre/nsEmbedFunctions.cpp
-+++ toolkit/xre/nsEmbedFunctions.cpp
-@@ -360,10 +360,12 @@ nsresult XRE_InitChildProcess(int aArgc, char* aArgv[],
-           static_cast<CrashReporter::ProcessId>(*crashHelperPidArg);
- #endif  // defined(XP_LINUX) && !defined(MOZ_WIDGET_ANDROID)
- 
-+#if !defined(XP_FREEBSD)
-       exceptionHandlerIsSet = CrashReporter::SetRemoteExceptionHandler(
-           std::move(*crashReporterArg), crashHelperPid);
-       MOZ_ASSERT(exceptionHandlerIsSet,
-                  "Should have been able to set remote exception handler");
-+#endif
- 
-       if (!exceptionHandlerIsSet) {
-         // Bug 684322 will add better visibility into this condition