git: 808738889876 - main - www/chromium: update to 132.0.6834.159

From: Robert Nagy <rnagy_at_FreeBSD.org>
Date: Fri, 31 Jan 2025 07:53:00 UTC
The branch main has been updated by rnagy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8087388898766281e0e50e4c8736e2f94e9cf7c1

commit 8087388898766281e0e50e4c8736e2f94e9cf7c1
Author:     Robert Nagy <rnagy@FreeBSD.org>
AuthorDate: 2025-01-31 07:52:14 +0000
Commit:     Robert Nagy <rnagy@FreeBSD.org>
CommitDate: 2025-01-31 07:52:55 +0000

    www/chromium: update to 132.0.6834.159
    
    Security:       https://vuxml.freebsd.org/freebsd/186101b4-dfa6-11ef-8c1c-a8a1599412c6.html
---
 www/chromium/Makefile                              |  3 +-
 www/chromium/distinfo                              | 10 ++--
 ...r_renderer__host_render__process__host__impl.cc | 55 ++++++++++++++++++++++
 www/ungoogled-chromium/Makefile                    |  3 +-
 www/ungoogled-chromium/distinfo                    | 14 +++---
 ...r_renderer__host_render__process__host__impl.cc | 55 ++++++++++++++++++++++
 6 files changed, 124 insertions(+), 16 deletions(-)

diff --git a/www/chromium/Makefile b/www/chromium/Makefile
index 5f299326ca2e..041d1d8dbf52 100644
--- a/www/chromium/Makefile
+++ b/www/chromium/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	chromium
-PORTVERSION=	132.0.6834.110
-PORTREVISION=	1
+PORTVERSION=	132.0.6834.159
 PULSEMV=	16
 PULSEV=		${PULSEMV}.1
 CATEGORIES=	www wayland
diff --git a/www/chromium/distinfo b/www/chromium/distinfo
index b85d1a3e2793..ad449b3e1bd1 100644
--- a/www/chromium/distinfo
+++ b/www/chromium/distinfo
@@ -1,7 +1,7 @@
-TIMESTAMP = 1737792307
-SHA256 (chromium-132.0.6834.110.tar.xz) = e18a1c9575371c9e0511798bac52fd682456f507081bfefd013c58b8d13e52a9
-SIZE (chromium-132.0.6834.110.tar.xz) = 6853845216
+TIMESTAMP = 1738309359
+SHA256 (chromium-132.0.6834.159.tar.xz) = 564cc8a258b16d1c6151721a2a72e43ba80642326b33aa79439bba354e686068
+SIZE (chromium-132.0.6834.159.tar.xz) = 6862656444
 SHA256 (pulseaudio-16.1.tar.gz) = 027266c62f2a84422ac45fa721a649508f0f1628fb1fd9242315ac54ce2d7c92
 SIZE (pulseaudio-16.1.tar.gz) = 2763111
-SHA256 (chromium-132.0.6834.110-testdata.tar.xz) = 7ab7882fd7bdca944554f456baf8c233b9bbd61608830a59c9d123e287e9573b
-SIZE (chromium-132.0.6834.110-testdata.tar.xz) = 644067924
+SHA256 (chromium-132.0.6834.159-testdata.tar.xz) = fea80f95a6e2c13e4d0cc1d50f33a62c50eaee625070510ae79a6bc199b2fd11
+SIZE (chromium-132.0.6834.159-testdata.tar.xz) = 644079868
diff --git a/www/chromium/files/patch-content_browser_renderer__host_render__process__host__impl.cc b/www/chromium/files/patch-content_browser_renderer__host_render__process__host__impl.cc
new file mode 100644
index 000000000000..7b9970a8ba59
--- /dev/null
+++ b/www/chromium/files/patch-content_browser_renderer__host_render__process__host__impl.cc
@@ -0,0 +1,55 @@
+--- content/browser/renderer_host/render_process_host_impl.cc.orig	2025-01-31 07:39:40 UTC
++++ content/browser/renderer_host/render_process_host_impl.cc
+@@ -220,7 +220,7 @@
+ #include "third_party/blink/public/mojom/android_font_lookup/android_font_lookup.mojom.h"
+ #endif
+ 
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ #include <sys/resource.h>
+ 
+ #include "components/services/font/public/mojom/font_service.mojom.h"  // nogncheck
+@@ -1082,7 +1082,7 @@ static constexpr size_t kUnknownPlatformProcessLimit =
+ // to indicate failure and std::numeric_limits<size_t>::max() to indicate
+ // unlimited.
+ size_t GetPlatformProcessLimit() {
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+   struct rlimit limit;
+   if (getrlimit(RLIMIT_NPROC, &limit) != 0)
+     return kUnknownPlatformProcessLimit;
+@@ -1259,7 +1259,7 @@ RenderProcessHostImpl::IOThreadHostImpl::~IOThreadHost
+ 
+ void RenderProcessHostImpl::IOThreadHostImpl::SetPid(
+     base::ProcessId child_pid) {
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+   child_thread_type_switcher_.SetPid(child_pid);
+ #endif  // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+ }
+@@ -3261,7 +3261,7 @@ void RenderProcessHostImpl::AppendRendererCommandLine(
+             base::TimeTicks::UnixEpoch().since_origin().InMicroseconds()));
+   }
+ 
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+   // Append `kDisableVideoCaptureUseGpuMemoryBuffer` flag if there is no support
+   // for NV12 GPU memory buffer.
+   if (switches::IsVideoCaptureUseGpuMemoryBufferEnabled() &&
+@@ -3318,6 +3318,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLin
+       switches::kDisableSpeechAPI,
+       switches::kDisableThreadedCompositing,
+       switches::kDisableTouchDragDrop,
++      switches::kDisableUnveil,
+       switches::kDisableV8IdleTasks,
+       switches::kDisableVideoCaptureUseGpuMemoryBuffer,
+       switches::kDisableWebGLImageChromium,
+@@ -5107,7 +5108,7 @@ uint64_t RenderProcessHostImpl::GetPrivateMemoryFootpr
+   // - Win: https://crbug.com/707022 .
+   uint64_t total_size = 0;
+ #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \
+-    BUILDFLAG(IS_FUCHSIA)
++    BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
+   total_size = dump->platform_private_footprint->rss_anon_bytes +
+                dump->platform_private_footprint->vm_swap_bytes;
+ #elif BUILDFLAG(IS_APPLE)
diff --git a/www/ungoogled-chromium/Makefile b/www/ungoogled-chromium/Makefile
index 7957473bc969..2b1948b244e5 100644
--- a/www/ungoogled-chromium/Makefile
+++ b/www/ungoogled-chromium/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	ungoogled-chromium
-PORTVERSION=	132.0.6834.110
-PORTREVISION=	1
+PORTVERSION=	132.0.6834.159
 PULSEMV=	16
 PULSEV=		${PULSEMV}.1
 UGVERSION=	${DISTVERSION}-1
diff --git a/www/ungoogled-chromium/distinfo b/www/ungoogled-chromium/distinfo
index 4f9167c2ca4d..ff7f0d2f92ab 100644
--- a/www/ungoogled-chromium/distinfo
+++ b/www/ungoogled-chromium/distinfo
@@ -1,9 +1,9 @@
-TIMESTAMP = 1737797832
-SHA256 (chromium-132.0.6834.110.tar.xz) = e18a1c9575371c9e0511798bac52fd682456f507081bfefd013c58b8d13e52a9
-SIZE (chromium-132.0.6834.110.tar.xz) = 6853845216
+TIMESTAMP = 1738309753
+SHA256 (chromium-132.0.6834.159.tar.xz) = 564cc8a258b16d1c6151721a2a72e43ba80642326b33aa79439bba354e686068
+SIZE (chromium-132.0.6834.159.tar.xz) = 6862656444
 SHA256 (pulseaudio-16.1.tar.gz) = 027266c62f2a84422ac45fa721a649508f0f1628fb1fd9242315ac54ce2d7c92
 SIZE (pulseaudio-16.1.tar.gz) = 2763111
-SHA256 (chromium-132.0.6834.110-testdata.tar.xz) = 7ab7882fd7bdca944554f456baf8c233b9bbd61608830a59c9d123e287e9573b
-SIZE (chromium-132.0.6834.110-testdata.tar.xz) = 644067924
-SHA256 (ungoogled-software-ungoogled-chromium-132.0.6834.110-132.0.6834.110-1_GH0.tar.gz) = bb1b2cc70cf1f737511b187afa4c626f26270a9eafc46434f4c9fe987e9d5314
-SIZE (ungoogled-software-ungoogled-chromium-132.0.6834.110-132.0.6834.110-1_GH0.tar.gz) = 681098
+SHA256 (chromium-132.0.6834.159-testdata.tar.xz) = fea80f95a6e2c13e4d0cc1d50f33a62c50eaee625070510ae79a6bc199b2fd11
+SIZE (chromium-132.0.6834.159-testdata.tar.xz) = 644079868
+SHA256 (ungoogled-software-ungoogled-chromium-132.0.6834.159-132.0.6834.159-1_GH0.tar.gz) = 90ab799cf15f5f458d45f6007244530234c06e00e97b94136d9bd1659c9dd890
+SIZE (ungoogled-software-ungoogled-chromium-132.0.6834.159-132.0.6834.159-1_GH0.tar.gz) = 681114
diff --git a/www/ungoogled-chromium/files/patch-content_browser_renderer__host_render__process__host__impl.cc b/www/ungoogled-chromium/files/patch-content_browser_renderer__host_render__process__host__impl.cc
new file mode 100644
index 000000000000..6cbcb9f6797e
--- /dev/null
+++ b/www/ungoogled-chromium/files/patch-content_browser_renderer__host_render__process__host__impl.cc
@@ -0,0 +1,55 @@
+--- content/browser/renderer_host/render_process_host_impl.cc.orig	2025-01-31 07:50:54 UTC
++++ content/browser/renderer_host/render_process_host_impl.cc
+@@ -221,7 +221,7 @@
+ #include "third_party/blink/public/mojom/android_font_lookup/android_font_lookup.mojom.h"
+ #endif
+ 
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ #include <sys/resource.h>
+ 
+ #include "components/services/font/public/mojom/font_service.mojom.h"  // nogncheck
+@@ -1083,7 +1083,7 @@ static constexpr size_t kUnknownPlatformProcessLimit =
+ // to indicate failure and std::numeric_limits<size_t>::max() to indicate
+ // unlimited.
+ size_t GetPlatformProcessLimit() {
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+   struct rlimit limit;
+   if (getrlimit(RLIMIT_NPROC, &limit) != 0)
+     return kUnknownPlatformProcessLimit;
+@@ -1260,7 +1260,7 @@ RenderProcessHostImpl::IOThreadHostImpl::~IOThreadHost
+ 
+ void RenderProcessHostImpl::IOThreadHostImpl::SetPid(
+     base::ProcessId child_pid) {
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+   child_thread_type_switcher_.SetPid(child_pid);
+ #endif  // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+ }
+@@ -3262,7 +3262,7 @@ void RenderProcessHostImpl::AppendRendererCommandLine(
+             base::TimeTicks::UnixEpoch().since_origin().InMicroseconds()));
+   }
+ 
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+   // Append `kDisableVideoCaptureUseGpuMemoryBuffer` flag if there is no support
+   // for NV12 GPU memory buffer.
+   if (switches::IsVideoCaptureUseGpuMemoryBufferEnabled() &&
+@@ -3319,6 +3319,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLin
+       switches::kDisableSpeechAPI,
+       switches::kDisableThreadedCompositing,
+       switches::kDisableTouchDragDrop,
++      switches::kDisableUnveil,
+       switches::kDisableV8IdleTasks,
+       switches::kDisableVideoCaptureUseGpuMemoryBuffer,
+       switches::kDisableWebGLImageChromium,
+@@ -5111,7 +5112,7 @@ uint64_t RenderProcessHostImpl::GetPrivateMemoryFootpr
+   // - Win: https://crbug.com/707022 .
+   uint64_t total_size = 0;
+ #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \
+-    BUILDFLAG(IS_FUCHSIA)
++    BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
+   total_size = dump->platform_private_footprint->rss_anon_bytes +
+                dump->platform_private_footprint->vm_swap_bytes;
+ #elif BUILDFLAG(IS_APPLE)