51 lines
2.8 KiB
Diff
51 lines
2.8 KiB
Diff
From: uazo <uazo@users.noreply.github.com>
|
|
Date: Tue, 2 May 2023 15:26:46 +0000
|
|
Subject: Disable FirstPartySets and StorageAccessAPI
|
|
|
|
License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
|
|
---
|
|
components/privacy_sandbox/privacy_sandbox_prefs.cc | 2 +-
|
|
components/privacy_sandbox/tracking_protection_prefs.cc | 4 ++--
|
|
.../Disable-FirstPartySets-and-StorageAccessAPI.inc | 1 +
|
|
3 files changed, 4 insertions(+), 3 deletions(-)
|
|
create mode 100644 cromite_flags/content/public/common/content_features_cc/Disable-FirstPartySets-and-StorageAccessAPI.inc
|
|
|
|
diff --git a/components/privacy_sandbox/privacy_sandbox_prefs.cc b/components/privacy_sandbox/privacy_sandbox_prefs.cc
|
|
--- a/components/privacy_sandbox/privacy_sandbox_prefs.cc
|
|
+++ b/components/privacy_sandbox/privacy_sandbox_prefs.cc
|
|
@@ -55,7 +55,7 @@ void RegisterProfilePrefs(PrefRegistrySimple* registry) {
|
|
registry->RegisterBooleanPref(
|
|
prefs::kPrivacySandboxFirstPartySetsDataAccessAllowedInitialized, false);
|
|
registry->RegisterBooleanPref(
|
|
- prefs::kPrivacySandboxRelatedWebsiteSetsEnabled, true,
|
|
+ prefs::kPrivacySandboxRelatedWebsiteSetsEnabled, false,
|
|
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
|
|
|
|
registry->RegisterBooleanPref(prefs::kPrivacySandboxTopicsConsentGiven,
|
|
diff --git a/components/privacy_sandbox/tracking_protection_prefs.cc b/components/privacy_sandbox/tracking_protection_prefs.cc
|
|
--- a/components/privacy_sandbox/tracking_protection_prefs.cc
|
|
+++ b/components/privacy_sandbox/tracking_protection_prefs.cc
|
|
@@ -64,13 +64,13 @@ void RegisterProfilePrefs(PrefRegistrySimple* registry) {
|
|
|
|
// Tracking Protection Settings Prefs
|
|
registry->RegisterBooleanPref(
|
|
- prefs::kBlockAll3pcToggleEnabled, false,
|
|
+ prefs::kBlockAll3pcToggleEnabled, false, // with true enables FPS
|
|
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
|
|
registry->RegisterIntegerPref(
|
|
prefs::kTrackingProtectionLevel,
|
|
static_cast<int>(TrackingProtectionLevel::kStandard),
|
|
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
|
|
- registry->RegisterBooleanPref(prefs::kTrackingProtection3pcdEnabled, false);
|
|
+ registry->RegisterBooleanPref(prefs::kTrackingProtection3pcdEnabled, false); // with true enables FPS
|
|
registry->RegisterBooleanPref(
|
|
prefs::kEnableDoNotTrack, false,
|
|
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
|
|
diff --git a/cromite_flags/content/public/common/content_features_cc/Disable-FirstPartySets-and-StorageAccessAPI.inc b/cromite_flags/content/public/common/content_features_cc/Disable-FirstPartySets-and-StorageAccessAPI.inc
|
|
new file mode 100644
|
|
--- /dev/null
|
|
+++ b/cromite_flags/content/public/common/content_features_cc/Disable-FirstPartySets-and-StorageAccessAPI.inc
|
|
@@ -0,0 +1 @@
|
|
+SET_CROMITE_FEATURE_DISABLED(kFirstPartySets);
|
|
--
|