From e46f4a3ce3f4fe64286b3188d0d7fb6e4658d951 Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Thu, 30 May 2024 14:41:17 +0200 Subject: [PATCH] Media fingerprinting mitigations: #862 removes the ability to understand the capabilities of the video card in windows. --- build/cromite_patches_list.txt | 1 + .../Media-fingerprinting-mitigations.patch | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 build/patches/Media-fingerprinting-mitigations.patch diff --git a/build/cromite_patches_list.txt b/build/cromite_patches_list.txt index 21a445f0..68ad8a57 100644 --- a/build/cromite_patches_list.txt +++ b/build/cromite_patches_list.txt @@ -292,6 +292,7 @@ Keep-disabled-WebViewMediaIntegrityApi.patch Enable-menu-on-reload-button.patch Enable-Global-Privacy-Control.patch Enable-Do-Not-Track-by-default.patch +Media-fingerprinting-mitigations.patch Temp-PerformanceNavigationTiming-privacy-fix.patch Temp-disable-predictive-back-gesture.patch diff --git a/build/patches/Media-fingerprinting-mitigations.patch b/build/patches/Media-fingerprinting-mitigations.patch new file mode 100644 index 00000000..4203452d --- /dev/null +++ b/build/patches/Media-fingerprinting-mitigations.patch @@ -0,0 +1,25 @@ +From: uazo +Date: Thu, 30 May 2024 11:42:21 +0000 +Subject: Media fingerprinting mitigations + +Removes the ability to understand the capabilities of the video card in windows. +See https://github.com/uazo/cromite/issues/862 + +License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html +--- + third_party/blink/renderer/modules/webcodecs/video_decoder.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/third_party/blink/renderer/modules/webcodecs/video_decoder.cc b/third_party/blink/renderer/modules/webcodecs/video_decoder.cc +--- a/third_party/blink/renderer/modules/webcodecs/video_decoder.cc ++++ b/third_party/blink/renderer/modules/webcodecs/video_decoder.cc +@@ -299,7 +299,7 @@ ScriptPromise VideoDecoder::isConfigSupported( + auto* config_copy = CopyConfig(*config); + + // Run the "Check Configuration Support" algorithm. +- HardwarePreference hw_pref = GetHardwareAccelerationPreference(*config_copy); ++ HardwarePreference hw_pref = HardwarePreference::kPreferSoftware; + VideoDecoderSupport* support = VideoDecoderSupport::Create(); + support->setConfig(config_copy); + +--