AUR AI Reviewer

Review Results

Version #3228 of ungoogled-chromium · commit 1b1cf7b9a911 · status Reviewed

Risk 0/5 · Safe .SRCINFO
Result #6929

Comment

The only change in this .SRCINFO hunk is a version bump from 157.0.8103.78 to 158.0.8127.36. No source URLs, checksums, build steps, install scripts, or packaging metadata were altered in the reviewed diff, so there is no new evidence of supply-chain risk or malicious behavior in this change alone. The security posture remains unchanged from the previous package metadata.

@@ -1,6 +1,6 @@
 pkgbase = ungoogled-chromium
 	pkgdesc = A lightweight approach to removing Google web service dependency
-	pkgver = 157.0.8103.78
+	pkgver = 158.0.8127.36
 	pkgrel = 1
 	url = https://github.com/ungoogled-software/ungoogled-chromium
 	arch = x86_64
Risk 0/5 · Safe .SRCINFO
Result #6930

Comment

The change is a routine .SRCINFO version bump for ungoogled-chromium, updating the upstream Chromium version, associated source tarballs, and patch list/checksums. The only substantive metadata changes are removal of an obsolete makedepends/depend entry and replacement of patch filenames to match the new release. I do not see any new suspicious sources, build-time network fetches beyond the normal pinned upstream archives, or privilege/persistence mechanisms introduced by this diff. Risk is low.

@@ -16,7 +16,6 @@ pkgbase = ungoogled-chromium
 	makedepends = lld
 	makedepends = ninja
 	makedepends = nodejs
-	makedepends = opus
 	makedepends = pipewire
 	makedepends = python
 	makedepends = qt6-base
Risk 0/5 · Safe .SRCINFO
Result #6931

Comment

The change only removes a dependency entry for libxslt from .SRCINFO. This is metadata-only and does not introduce any new code execution, network access, privilege changes, or packaging behavior. The main effect is that the package metadata no longer advertises libxslt as a dependency; that could affect runtime completeness if the PKGBUILD still needs it, but from a security perspective this is low risk and not an obvious supply-chain or persistence issue.

@@ -77,7 +76,6 @@ pkgbase = ungoogled-chromium
 	depends = minizip
 	depends = opus
 	depends = double-conversion
-	depends = libxslt
 	depends = harfbuzz
 	depends = freetype2
 	optdepends = pipewire: WebRTC desktop sharing under Wayland
Risk 0/5 · Safe .SRCINFO
Result #6932

Comment

The change is a routine version bump in .SRCINFO: it updates Chromium/Chromedriver provides, source tarball URLs, a pinned crubit git commit, and corresponding checksums, while swapping in version-matched patch filenames. There are no new build-time network fetches beyond the declared sources, no suspicious hosts, no install scripts or privilege-related artifacts introduced, and no evidence of obfuscation or persistence mechanisms in this metadata-only diff. Risk is low.

@@ -86,54 +84,50 @@ pkgbase = ungoogled-chromium
 	optdepends = qt6-base: Qt support
 	optdepends = org.freedesktop.secrets: password storage backend on GNOME, KDE and Xfce
 	optdepends = upower: Battery Status API support
-	provides = chromium=157.0.8103.78
-	provides = chromedriver=157.0.8103.78
+	provides = chromium=158.0.8127.36
+	provides = chromedriver=158.0.8127.36
 	conflicts = chromium
 	conflicts = chromedriver
 	options = !lto
-	source = https://commondatastorage.googleapis.com/chromium-browser-official/chromium-157.0.8103.78-lite.tar.xz
-	source = git+https://chromium.googlesource.com/external/github.com/google/crubit.git#commit=25d2c01bde904c3333bb2d48201e5cbb186a1c7f
-	source = ungoogled-chromium-157.0.8103.78-1.tar.gz::https://github.com/ungoogled-software/ungoogled-chromium/archive/157.0.8103.78-1.tar.gz
+	source = https://commondatastorage.googleapis.com/chromium-browser-official/chromium-158.0.8127.36-lite.tar.xz
+	source = git+https://chromium.googlesource.com/external/github.com/google/crubit.git#commit=d757594f6f7ac27c0cf9c8ea63d9136f8e1f77ae
+	source = ungoogled-chromium-158.0.8127.36-1.tar.gz::https://github.com/ungoogled-software/ungoogled-chromium/archive/158.0.8127.36-1.tar.gz
 	source = https://github.com/foutrelis/chromium-launcher/archive/v8/chromium-launcher-8.tar.gz
 	source = chromium-138-nodejs-version-check.patch
 	source = chromium-145-fix-SYS_SECCOMP.patch
 	source = chromium-147-rust-1.95-bytemuck.patch
 	source = chromium-147-simdutf-8.0-base-char.patch
-	source = chromium-149-use-of-undeclared-identifier-ERROR.patch
 	source = chromium-150-revert-avx-flag-change.patch
 	source = chromium-152-unbundle-minizip-undo-unicode.patch
 	source = chromium-152-unbundle-opus-devtools.patch
 	source = chromium-153-hermetic-python.patch
 	source = chromium-153-iamf-tools-unbundled-opus.patch
 	source = chromium-155-use-system-esbuild.patch
-	source = chromium-156-isolatedDeclarations.patch
-	source = chromium-157-revert-gn-check-includes.patch
+	source = chromium-158-isolatedDeclarations.patch
 	source = chromium-157-typescript.patch
-	source = chromium-157-crubit.patch
+	source = chromium-158-revert-gn-check-includes.patch
 	source = compiler-rt-adjust-paths.patch
 	source = increase-fortify-level.patch
 	source = enable-widevine-arm64.patch
 	source = use-oauth2-client-switches-as-default.patch
 	source = glibc-2.42-baud-rate-fix.patch
-	sha256sums = 9fdce9d3c866f97f14f7a4250915e8e5b729dc952fcfb3a35507b126233f0660
-	sha256sums = a9c0f429c7a45d31cecd8bd36fc636fbedaf49ff57264a22e3f1eabd4cab523a
-	sha256sums = 4028ace0113428dd9ffb0d27f27a54af1b3c1cec9431862ea130ec7f5a74cf9f
+	sha256sums = 8a93030a68231ea046479c47d6b26dfae43becef1b5343cf95f8146109291d6d
+	sha256sums = fa10e66c8078c2e02cf7e1df0810b7c7d77b89592cc27fca7a756cc4a5ba06cb
+	sha256sums = 7c6436fad80824245828b649ca776cb1c44f6827267858a7b1bb482ab62819c9
 	sha256sums = 213e50f48b67feb4441078d50b0fd431df34323be15be97c55302d3fdac4483a
 	sha256sums = 11a96ffa21448ec4c63dd5c8d6795a1998d8e5cd5a689d91aea4d2bdd13fb06e
 	sha256sums = 4fc040a0656a0a524dd8ad090cd129fc5b6cb21adcc66be82080165789e8c13e
 	sha256sums = b9e6339221efe03540ffb360c161d93604a1fc93a5a1c53e5e9849066f987d05
 	sha256sums = 80e445d7a5cbd61d1252ecf46c5eaf0fb4a5e63bd1b9c976261df778a4586640
-	sha256sums = 951514535be65f0e2f84e82305d96292be1da353c1427ba1048ea24be70003c4
 	sha256sums = 5f6ccb7b945c8a13c690493723bad816b36f2f25792d47e677b56f8200907e60
 	sha256sums = 890e5d98088ef1c7c075a551442f03385d1db266cad8a65576704a22720683f9
 	sha256sums = 3276453f2ce655b6286476f48d4df837be952d9447afa46583f79ec71f2288c3
 	sha256sums = ebf74154266d0b6d6cc957c413f845052c5fcfce7745befb8821595cdf3f7d49
 	sha256sums = 2ab9fbe653829ce692f83ee780aad07e8c83a6686e51ab9459ad736cfa2850ee
 	sha256sums = ded2abcb912ac4b6ad139e56384eea8f3b470cf57ecb0baa2c2d042df7575a23
-	sha256sums = f6aefbd3f70dbda9242cf815a1dca56af729632166bc57e5067755b119cc95de
-	sha256sums = 3b663878c6b05e612ba103152c48f91dde27cabe7d55ba48427a72829ff4922f
+	sha256sums = 1aa9498c8056d4c40e0e5adb690b0712b263d9a29ac44953aba60af417f4199e
 	sha256sums = 655a43eaff824ba27f359790c31c43abd9fc4234026b0d039b8f2633dcb057cb
-	sha256sums = eda45eaa5ba6c2ee86389200d4b758f0a06ffb32f3d06c3d0b60f2714c5d237f
+	sha256sums = a41079e62008c016c179643f085107a55b095c8e2d64867b701ff0047951b0b6
 	sha256sums = ec8e49b7114e2fa2d359155c9ef722ff1ba5fe2c518fa48e30863d71d3b82863
 	sha256sums = d634d2ce1fc63da7ac41f432b1e84c59b7cceabf19d510848a7cff40c8025342
 	sha256sums = 5ee4bb69379ac0cea7946c9f8f4ca9e20e0a9e4ee2ee9121eb0ebbb94dd7e928
Risk 0/5 · Safe PKGBUILD
Result #6933

Comment

The change is a routine version bump for ungoogled-chromium with corresponding checksum and patch updates. I do not see any new network fetches outside source=(), no shell execution red flags, no privilege escalation, and no suspicious install-time behavior introduced. The removed/added patches and dependency adjustments appear consistent with upstream Chromium/toolchain changes, and the PKGBUILD still confines build/package actions to the normal source/build flow.

@@ -10,20 +10,19 @@
 # Contributor: Pierre Schmitz <pierre@archlinux.de>
 # Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
+# Contributor: Caleb Maclennan <caleb@alerque.com>
 
 pkgname=ungoogled-chromium
-pkgver=157.0.8103.78
+pkgver=158.0.8127.36
 pkgrel=1
 _launcher_ver=8
 _manual_clone=0
 _system_clang=1
 # Check the CRUBIT_REVISION found in tools/rust/update_rust.py
-#_crubit_rev=20dc640430bd60ff2f7f8dbf69c311c5f807adde
-# The commit above cannot be built successfully, use the last known good commit for stable toolchain
-_crubit_rev=25d2c01bde904c3333bb2d48201e5cbb186a1c7f
+_crubit_rev=d757594f6f7ac27c0cf9c8ea63d9136f8e1f77ae
 # ungoogled chromium variables
 _uc_usr=ungoogled-software
-_uc_ver=157.0.8103.78-1
+_uc_ver=158.0.8127.36-1
 pkgdesc="A lightweight approach to removing Google web service dependency"
 arch=('x86_64')
 url="https://github.com/ungoogled-software/ungoogled-chromium"
Risk 0/5 · Safe PKGBUILD
Result #6934

Comment

The change only removes 'opus' from makedepends in PKGBUILD. This reduces a build dependency and does not introduce any new code execution, network access, packaging behavior, or privilege-related risk. No security-relevant concerns are evident from this diff hunk alone.

@@ -78,7 +77,6 @@ makedepends=(
   'lld'
   'ninja'
   'nodejs'
-  'opus'
   'pipewire'
   'python'
   'qt6-base'
Risk 0/5 · Safe PKGBUILD
Result #6935

Comment

The PKGBUILD update is a routine version/patch refresh for Chromium 158. The changed source URLs remain HTTPS and pinned, and the new/renamed patch files are part of the package’s normal patch set. I checked the relevant patches: they adjust TypeScript/devtools typing and GN build behavior to accommodate upstream changes, and the PKGBUILD itself does not introduce any new build-time network fetches, shell execution, privilege escalation, or install-time persistence mechanisms. The only notable metadata change is dropping the explicit `opus` makedependency while still using the system opus library via the existing unbundling setup, which does not look security-relevant. Overall this change appears low risk.

@@ -106,41 +104,37 @@ source=(https://commondatastorage.googleapis.com/chromium-browser-official/chrom
         chromium-145-fix-SYS_SECCOMP.patch
         chromium-147-rust-1.95-bytemuck.patch
         chromium-147-simdutf-8.0-base-char.patch
-        chromium-149-use-of-undeclared-identifier-ERROR.patch
         chromium-150-revert-avx-flag-change.patch
         chromium-152-unbundle-minizip-undo-unicode.patch
         chromium-152-unbundle-opus-devtools.patch
         chromium-153-hermetic-python.patch
         chromium-153-iamf-tools-unbundled-opus.patch
         chromium-155-use-system-esbuild.patch
-        chromium-156-isolatedDeclarations.patch
-        chromium-157-revert-gn-check-includes.patch
+        chromium-158-isolatedDeclarations.patch
         chromium-157-typescript.patch
-        chromium-157-crubit.patch
+        chromium-158-revert-gn-check-includes.patch
         compiler-rt-adjust-paths.patch
         increase-fortify-level.patch
         enable-widevine-arm64.patch
         use-oauth2-client-switches-as-default.patch
         glibc-2.42-baud-rate-fix.patch)
-sha256sums=('9fdce9d3c866f97f14f7a4250915e8e5b729dc952fcfb3a35507b126233f0660'
-            'a9c0f429c7a45d31cecd8bd36fc636fbedaf49ff57264a22e3f1eabd4cab523a'
-            '4028ace0113428dd9ffb0d27f27a54af1b3c1cec9431862ea130ec7f5a74cf9f'
+sha256sums=('8a93030a68231ea046479c47d6b26dfae43becef1b5343cf95f8146109291d6d'
+            'fa10e66c8078c2e02cf7e1df0810b7c7d77b89592cc27fca7a756cc4a5ba06cb'
+            '7c6436fad80824245828b649ca776cb1c44f6827267858a7b1bb482ab62819c9'
             '213e50f48b67feb4441078d50b0fd431df34323be15be97c55302d3fdac4483a'
             '11a96ffa21448ec4c63dd5c8d6795a1998d8e5cd5a689d91aea4d2bdd13fb06e'
             '4fc040a0656a0a524dd8ad090cd129fc5b6cb21adcc66be82080165789e8c13e'
             'b9e6339221efe03540ffb360c161d93604a1fc93a5a1c53e5e9849066f987d05'
             '80e445d7a5cbd61d1252ecf46c5eaf0fb4a5e63bd1b9c976261df778a4586640'
-            '951514535be65f0e2f84e82305d96292be1da353c1427ba1048ea24be70003c4'
             '5f6ccb7b945c8a13c690493723bad816b36f2f25792d47e677b56f8200907e60'
             '890e5d98088ef1c7c075a551442f03385d1db266cad8a65576704a22720683f9'
             '3276453f2ce655b6286476f48d4df837be952d9447afa46583f79ec71f2288c3'
             'ebf74154266d0b6d6cc957c413f845052c5fcfce7745befb8821595cdf3f7d49'
             '2ab9fbe653829ce692f83ee780aad07e8c83a6686e51ab9459ad736cfa2850ee'
             'ded2abcb912ac4b6ad139e56384eea8f3b470cf57ecb0baa2c2d042df7575a23'
-            'f6aefbd3f70dbda9242cf815a1dca56af729632166bc57e5067755b119cc95de'
-            '3b663878c6b05e612ba103152c48f91dde27cabe7d55ba48427a72829ff4922f'
+            '1aa9498c8056d4c40e0e5adb690b0712b263d9a29ac44953aba60af417f4199e'
             '655a43eaff824ba27f359790c31c43abd9fc4234026b0d039b8f2633dcb057cb'
-            'eda45eaa5ba6c2ee86389200d4b758f0a06ffb32f3d06c3d0b60f2714c5d237f'
+            'a41079e62008c016c179643f085107a55b095c8e2d64867b701ff0047951b0b6'
             'ec8e49b7114e2fa2d359155c9ef722ff1ba5fe2c518fa48e30863d71d3b82863'
             'd634d2ce1fc63da7ac41f432b1e84c59b7cceabf19d510848a7cff40c8025342'
             '5ee4bb69379ac0cea7946c9f8f4ca9e20e0a9e4ee2ee9121eb0ebbb94dd7e928'
Risk 0/5 · Safe PKGBUILD
Result #6936

Comment

The change only comments out the libxslt system-library mapping in PKGBUILD and adds a note referencing an Arch packaging MR. This does not introduce code execution, network access, privilege escalation, or packaging integrity issues by itself. It merely changes bundling behavior for one dependency and leaves the rest of the build logic untouched. No security red flags are evident in this hunk alone.

@@ -175,7 +169,9 @@ declare -gA _system_libs=(
   #[libvpx]=libvpx
   [libwebp]=libwebp
   [libxml]=libxml2
-  [libxslt]=libxslt
+  # https://gitlab.archlinux.org/archlinux/packaging/packages/libxslt/-/merge_requests/1
+  # unbundle again once the above MR is merged
+  #[libxslt]=libxslt
   [openh264]=openh264
   [opus]=opus
   #[re2]=re2          # needs libstdc++
Risk 1/5 · Low PKGBUILD
Result #6937

Comment

The only removed line drops a patch that fixed a Chromium build issue (`chromium-149-use-of-undeclared-identifier-ERROR.patch`). I inspected the surrounding PKGBUILD context and the remaining patch set; this change does not add any new execution paths, network access, privilege changes, or packaging/install-script behavior. The removed patch appears to be a build-fix/compatibility patch rather than a security control, so the impact is limited to potential build breakage or upstream behavior changes, not a clear security regression. Overall low risk.

@@ -236,8 +232,6 @@ prepare() {
   # https://crbug.com/456677057
   patch -Np1 -i ../glibc-2.42-baud-rate-fix.patch
 
-  patch -Np1 -i ../chromium-149-use-of-undeclared-identifier-ERROR.patch
-
   # Fix issue about missing AVX functions
   # Credit: https://github.com/ungoogled-software/ungoogled-chromium/pull/3837
   patch -Np1 -i ../chromium-150-revert-avx-flag-change.patch
Risk 0/5 · Safe PKGBUILD
Result #6938

Comment

The change is a routine version bump for ungoogled-chromium and updates the associated patch set and checksums. The only substantive PKGBUILD logic change in this hunk is swapping the order of two local patches and replacing the older 157-era patches with 158-era equivalents. I inspected the new patch file and it only adjusts Chromium GN metadata to restore previous behavior around generated-header checking / circular-include allowlists; it does not introduce network access, privilege escalation, persistence, or installation-time execution. No suspicious sources, binaries, or build-time downloads were added in this diff. Overall this looks low risk.

@@ -260,17 +254,15 @@ prepare() {
 
   patch -Np1 -i ../chromium-155-use-system-esbuild.patch
 
-  patch -Np1 -i ../chromium-157-crubit.patch
-
-  patch -Np1 -i ../chromium-157-revert-gn-check-includes.patch
-
-  patch -Np1 -i ../chromium-156-isolatedDeclarations.patch
+  patch -Np1 -i ../chromium-158-isolatedDeclarations.patch
 
   # Work around TypeScript becoming a build dependency: disable tsgo for the
   # WebUI and point devtools at the system tsc binary
   # https://github.com/ungoogled-software/ungoogled-chromium/pull/3966
   patch -Np1 -i ../chromium-157-typescript.patch
 
+  patch -Np1 -i ../chromium-158-revert-gn-check-includes.patch
+
   # The unbundled brotli doesn't provide brotli:headers
   sed -i '/brotli:headers/ d' third_party/pdfium/core/fxcodec/BUILD.gn
 
Risk 0/5 · Safe PKGBUILD
Result #6939

Comment

The change only adds a Rust build-argument list for four standard library crates (addr2line, adler2, gimli, miniz_oxide). This is a build-time configuration tweak, not a new source, download, install step, or privilege/persistence mechanism. I do not see any security-relevant behavior introduced by this hunk.

@@ -424,6 +416,7 @@ build() {
       "rust_sysroot_absolute=\"$_rust_sysroot\""
       'rust_bindgen_root="/usr"'
       "rustc_version=\"$(rustc --version | awk '{ print $2 ;}')\""
+      'added_rust_stdlib_libs=["addr2line","adler2","gimli","miniz_oxide"]'
     )
   fi
 
Risk 0/5 · Safe REUSE.toml
Result #6940

Comment

The change only removes one patch filename from REUSE.toml’s license annotation list. This is metadata-only and does not alter build logic, source fetching, install scripts, or shipped binaries. I did not see any security-relevant effect from this diff alone.

@@ -45,7 +45,6 @@ SPDX-License-Identifier = "BSD-3-Clause"
 [[annotations]]
 path = [
     "chromium-138-nodejs-version-check.patch",
-    "chromium-144-fix-hdr-issue.patch",
     "chromium-145-fix-SYS_SECCOMP.patch",
     "chromium-147-simdutf-8.0-base-char.patch",
     "compiler-rt-adjust-paths.patch",
Risk 0/5 · Safe REUSE.toml
Result #6941

Comment

The change only updates REUSE metadata to point at renamed patch files: two old patch filenames are removed and two new ones are added. This is a low-risk bookkeeping change by itself; it does not alter build logic, introduce new sources, or add executable code. I did not see any indication in the provided hunk of network access, privilege escalation, or packaging behavior changes.

@@ -60,10 +59,9 @@ SPDX-License-Identifier = "BSD-3-Clause"
 path = [
     "chromium-153-hermetic-python.patch",
     "chromium-155-use-system-esbuild.patch",
-    "chromium-157-crubit.patch",
-    "chromium-157-revert-gn-check-includes.patch",
     "chromium-157-typescript.patch",
-    "chromium-156-isolatedDeclarations.patch",
+    "chromium-158-isolatedDeclarations.patch",
+    "chromium-158-revert-gn-check-includes.patch",
 ]
 SPDX-FileCopyrightText = "2015-2026 The ungoogled-chromium Authors"
 SPDX-License-Identifier = "BSD-3-Clause"
Risk 0/5 · Safe REUSE.toml
Result #6942

Comment

The change only removes a REUSE annotation entry for a patch file from REUSE.toml. This is metadata-only and does not affect the package build, installed files, permissions, network access, or any execution path. I found no security-relevant behavior introduced by this diff.

@@ -84,7 +82,6 @@ SPDX-License-Identifier = "BSD-2-Clause"
 
 [[annotations]]
 path = [
-    "chromium-149-use-of-undeclared-identifier-ERROR.patch",
 ]
 SPDX-FileCopyrightText = "2003-2026 Nixpkgs/NixOS contributors"
 SPDX-License-Identifier = "MIT"
Risk 0/5 · Safe chromium-158-isolatedDeclarations.patch
Result #6943

Comment

The patch is a TypeScript type-only compatibility update in vendored Chromium/devtools/chromium-bidi code. It changes several parameter annotations to explicitly allow `undefined`, switches some imports to `import type`, and replaces enum references with string literals / `as any` to satisfy isolatedDeclarations typing. I do not see any added build-time network access, shell execution, privilege escalation, persistence, or packaging changes. The only notable concern is the use of `'deep' as any` and string literals in place of protocol enums, but this is still confined to type-level/source compatibility in upstream vendored code and does not introduce an obvious security issue in the package build or install process.

@@ -0,0 +1,125 @@
+--- a/third_party/devtools-frontend/src/front_end/core/host/DispatchHttpRequestClient.ts
++++ b/third_party/devtools-frontend/src/front_end/core/host/DispatchHttpRequestClient.ts
+@@ -14,7 +14,7 @@ export enum ErrorType {
+ }
+ 
+ export class DispatchHttpRequestError extends Error {
+-  constructor(readonly type: ErrorType, readonly response?: DispatchHttpRequestResult, options?: ErrorOptions) {
++  constructor(readonly type: ErrorType, readonly response?: DispatchHttpRequestResult | undefined, options?: ErrorOptions) {
+     super(undefined, options);
+   }
+ }
+--- a/third_party/devtools-frontend/src/front_end/ui/legacy/ARIAUtils.ts
++++ b/third_party/devtools-frontend/src/front_end/ui/legacy/ARIAUtils.ts
+@@ -420,7 +420,7 @@ export class LiveAnnouncer {
+     element.textContent = Platform.StringUtilities.trimEndWithMaxLength(announcedMessage, 10000);
+   }
+ 
+-  static getOrCreateAnnouncerElement(container: HTMLElement = document.body, role: AnnouncerRole, opts?: {
++  static getOrCreateAnnouncerElement(container: undefined | HTMLElement = document.body, role: AnnouncerRole, opts?: {
+     force: boolean,
+   }): HTMLElement {
+     const existingAnnouncerElement = LiveAnnouncer.#announcerElementsByRole[role].get(container);
+--- a/third_party/devtools-frontend/src/front_end/ui/legacy/Widget.ts
++++ b/third_party/devtools-frontend/src/front_end/ui/legacy/Widget.ts
+@@ -84,7 +84,7 @@ export type WidgetFactory<WidgetT extend
+ export type InferWidgetTFromFactory<F> = F extends WidgetFactory<infer WidgetT>? WidgetT : never;
+ 
+ export class WidgetConfig<WidgetT extends AnyWidget> {
+-  constructor(readonly widgetClass: WidgetFactory<WidgetT>, readonly widgetParams?: Partial<WidgetT>) {
++  constructor(readonly widgetClass: WidgetFactory<WidgetT>, readonly widgetParams?: Partial<WidgetT> | undefined) {
+   }
+ }
+ 
+--- a/third_party/chromium-bidi/src/bidiMapper/CommandProcessor.ts
++++ b/third_party/chromium-bidi/src/bidiMapper/CommandProcessor.ts
+@@ -101,3 +101,3 @@
+     userContextStorage: UserContextStorage,
+-    parser: BidiCommandParameterParser = new BidiNoOpParser(),
++    parser: undefined | BidiCommandParameterParser = new BidiNoOpParser(),
+     initConnection: (options: MapperOptions) => Promise<void>,
+--- a/third_party/chromium-bidi/src/bidiMapper/modules/script/ChannelProxy.ts
++++ b/third_party/chromium-bidi/src/bidiMapper/modules/script/ChannelProxy.ts
+@@ -16,7 +16,7 @@
+  *
+  */
+ 
+-import {Protocol} from 'devtools-protocol';
++import type {Protocol} from 'devtools-protocol';
+ 
+ import {ChromiumBidi, Script} from '../../../protocol/protocol.js';
+ import {LogType, type LoggerFn} from '../../../utils/log.js';
+@@ -118,7 +118,7 @@
+         contextId: realm.executionContextId,
+         serializationOptions: {
+           serialization:
+-            Protocol.Runtime.SerializationOptionsSerialization.IdOnly,
++            'idOnly',
+         },
+       },
+     );
+@@ -148,7 +148,7 @@
+         executionContextId: realm.executionContextId,
+         serializationOptions: {
+           serialization:
+-            Protocol.Runtime.SerializationOptionsSerialization.IdOnly,
++            'idOnly',
+         },
+       },
+     );
+@@ -181,7 +181,7 @@
+             executionContextId: realm.executionContextId,
+             serializationOptions: {
+               serialization:
+-                Protocol.Runtime.SerializationOptionsSerialization.Deep,
++                'deep',
+               maxDepth:
+                 this.#properties.serializationOptions?.maxObjectDepth ??
+                 undefined,
+@@ -254,7 +254,7 @@
+         awaitPromise: true,
+         serializationOptions: {
+           serialization:
+-            Protocol.Runtime.SerializationOptionsSerialization.IdOnly,
++            'idOnly',
+         },
+       },
+     );
+--- a/third_party/chromium-bidi/src/bidiMapper/modules/script/Realm.ts
++++ b/third_party/chromium-bidi/src/bidiMapper/modules/script/Realm.ts
+@@ -13,7 +13,7 @@
+  * See the License for the specific language governing permissions and
+  * limitations under the License.
+  */
+-import {Protocol} from 'devtools-protocol';
++import type {Protocol} from 'devtools-protocol';
+ 
+ import type {CdpClient} from '../../../cdp/CdpClient.js';
+ import {
+@@ -215,7 +215,7 @@
+         expression,
+         awaitPromise,
+         serializationOptions: Realm.#getSerializationOptions(
+-          Protocol.Runtime.SerializationOptionsSerialization.Deep,
++          'deep' as any,
+           serializationOptions,
+         ),
+         userGesture: userActivation,
+@@ -279,7 +279,7 @@
+         arguments: [argument],
+         serializationOptions: {
+           serialization:
+-            Protocol.Runtime.SerializationOptionsSerialization.Deep,
++            'deep',
+         },
+         executionContextId: this.executionContextId,
+       });
+@@ -419,7 +419,7 @@
+           awaitPromise,
+           arguments: thisAndArgumentsList,
+           serializationOptions: Realm.#getSerializationOptions(
+-            Protocol.Runtime.SerializationOptionsSerialization.Deep,
++            'deep' as any,
+             serializationOptions,
+           ),
+           executionContextId: this.executionContextId,
Risk 0/5 · Safe chromium-158-revert-gn-check-includes.patch
Result #6944

Comment

The patch only removes GN metadata comments and list definitions from .gn, apparently reverting or reshuffling header-checking allowlists. It does not introduce executable code, network access, privilege changes, or packaging/install-script behavior. The change is limited to build configuration text and, from the provided hunk, has no direct security impact beyond potentially altering GN include-check enforcement in a way that would be caught during build-time review rather than at runtime. No obvious supply-chain or persistence risk is present in this diff.

@@ -0,0 +1,28 @@
+--- a/.gn
++++ b/.gn
+@@ -88,13 +88,6 @@
+   "//v8:cppgc_base",  # https://crbug.com/v8/7330
+   "//v8:v8_internal_headers",  # https://crbug.com/v8/7330
+   "//v8:v8_libplatform",  # https://crbug.com/v8/7330
+-]
+-
+-# These are the targets to skip generated header checking by default. The
+-# generated files in targets matching these patterns will not have their
+-# includes checked when you run "gn check --check-generated". The other files in
+-# these targets are still checked.
+-no_check_generated_targets = [
+   # TODO(crbug.com/558554239): Eliminate entries as header dependency
+   # violations are resolved.
+   "//base/logging/rust_logger:rust_logger_cxx_generated",
+@@ -472,10 +465,3 @@
+       "//components/policy/BUILD.gn",
+     ]
+ 
+-# Entries in the allowlist should have a justification for why we need them. New
+-# entries should in this list should be reviewed by a member of the chrome build
+-# team.
+-# entries in this list should be reviewed by a member of the chrome build team.
+-allow_circular_includes_from_allowlist =
+-    allow_circular_includes_from_untriaged + project_bedrock_circular_includes +
+-    []
+\ No newline at end of file