From 84c145ee0f1a9795c8382210866ef31b0dffefe0 Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Thu, 9 Oct 2025 11:33:41 +0200 Subject: [PATCH] Keep disabled WebViewMediaIntegrityApi: fix webview build --- ...ep-disabled-WebViewMediaIntegrityApi.patch | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/build/patches/Keep-disabled-WebViewMediaIntegrityApi.patch b/build/patches/Keep-disabled-WebViewMediaIntegrityApi.patch index 8e12d4b7..7b113a0c 100644 --- a/build/patches/Keep-disabled-WebViewMediaIntegrityApi.patch +++ b/build/patches/Keep-disabled-WebViewMediaIntegrityApi.patch @@ -9,18 +9,22 @@ https://android-developers.googleblog.com/2023/11/increasing-trust-for-embedded- need: Add-cromite-flags-support.patch License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html --- - android_webview/common/aw_features.cc | 1 + - 1 file changed, 1 insertion(+) + android_webview/renderer/aw_content_renderer_client.cc | 5 ----- + 1 file changed, 5 deletions(-) -diff --git a/android_webview/common/aw_features.cc b/android_webview/common/aw_features.cc ---- a/android_webview/common/aw_features.cc -+++ b/android_webview/common/aw_features.cc -@@ -56,6 +56,7 @@ const base::FeatureParam kWebViewIpProtectionExclusionCriteria{ +diff --git a/android_webview/renderer/aw_content_renderer_client.cc b/android_webview/renderer/aw_content_renderer_client.cc +--- a/android_webview/renderer/aw_content_renderer_client.cc ++++ b/android_webview/renderer/aw_content_renderer_client.cc +@@ -199,11 +199,6 @@ void AwContentRendererClient:: + autofill::features::kAutofillSharedAutofill)) { + blink::WebRuntimeFeatures::EnableSharedAutofill(true); + } +- +- // Enable the overall android.webview namespace. +- blink::WebRuntimeFeatures::EnableBlinkExtensionWebView(true); +- // Enable the android.webview.getExperimentalMediaIntegrityProvider API. +- blink::WebRuntimeFeatures::EnableBlinkExtensionWebViewMediaIntegrity(true); + } - // Fetch Hand Writing icon lazily. - BASE_FEATURE(WebViewLazyFetchHandWritingIcon, base::FEATURE_ENABLED_BY_DEFAULT); -+SET_CROMITE_FEATURE_DISABLED(kWebViewMediaIntegrityApiBlinkExtension); - - // When enabled, passive mixed content (Audio/Video/Image subresources loaded - // over HTTP on HTTPS sites) will be autoupgraded to HTTPS, and the load will be + void AwContentRendererClient::WebViewCreated( --