From 22a897813f8bba9e5df2b9c8d956ce0c7c1421c7 Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Wed, 11 Oct 2023 12:19:24 +0200 Subject: [PATCH] fix position --- .../Multiple-fingerprinting-mitigations.patch | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/build/patches/Multiple-fingerprinting-mitigations.patch b/build/patches/Multiple-fingerprinting-mitigations.patch index 4c00d4846..a25681e8f 100644 --- a/build/patches/Multiple-fingerprinting-mitigations.patch +++ b/build/patches/Multiple-fingerprinting-mitigations.patch @@ -31,7 +31,7 @@ License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html content/browser/BUILD.gn | 1 + .../renderer_host/render_process_host_impl.cc | 4 + content/child/BUILD.gn | 1 + - content/child/runtime_features.cc | 9 + + content/child/runtime_features.cc | 8 + .../public/platform/web_runtime_features.h | 3 + .../blink/renderer/core/dom/document.cc | 20 +++ .../blink/renderer/core/dom/document.h | 7 + @@ -52,7 +52,7 @@ License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html third_party/ungoogled/BUILD.gn | 10 ++ third_party/ungoogled/ungoogled_switches.cc | 18 ++ third_party/ungoogled/ungoogled_switches.h | 18 ++ - 26 files changed, 377 insertions(+), 8 deletions(-) + 26 files changed, 376 insertions(+), 8 deletions(-) create mode 100644 third_party/ungoogled/BUILD.gn create mode 100644 third_party/ungoogled/ungoogled_switches.cc create mode 100644 third_party/ungoogled/ungoogled_switches.h @@ -156,19 +156,18 @@ diff --git a/content/child/runtime_features.cc b/content/child/runtime_features. #if BUILDFLAG(IS_ANDROID) #include "base/android/build_info.h" #endif -@@ -559,6 +561,13 @@ void SetCustomizedRuntimeFeaturesFromCombinedArgs( - if (command_line.HasSwitch(switches::kDisableV8IdleTasks)) { - WebRuntimeFeatures::EnableV8IdleTasks(false); - } else { +@@ -546,6 +548,12 @@ void SetRuntimeFeaturesFromCommandLine(const base::CommandLine& command_line) { + // as a last resort. + void SetCustomizedRuntimeFeaturesFromCombinedArgs( + const base::CommandLine& command_line) { + WebRuntimeFeatures::EnableFingerprintingClientRectsNoise( + !command_line.HasSwitch(switches::kFingerprintingClientRectsNoise)); + WebRuntimeFeatures::EnableFingerprintingCanvasMeasureTextNoise( + !command_line.HasSwitch(switches::kFingerprintingCanvasMeasureTextNoise)); + WebRuntimeFeatures::EnableFingerprintingCanvasImageDataNoise( + !command_line.HasSwitch(switches::kFingerprintingCanvasImageDataNoise)); -+ - WebRuntimeFeatures::EnableV8IdleTasks(true); - } + // CAUTION: Only add custom enabling logic here if it cannot + // be covered by the other functions. diff --git a/third_party/blink/public/platform/web_runtime_features.h b/third_party/blink/public/platform/web_runtime_features.h --- a/third_party/blink/public/platform/web_runtime_features.h