Skip to content

Commit

Permalink
fix position
Browse files Browse the repository at this point in the history
  • Loading branch information
uazo committed Oct 11, 2023
1 parent 3d7a50f commit 22a8978
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions build/patches/Multiple-fingerprinting-mitigations.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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 +
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 22a8978

Please sign in to comment.