From 4f591a8fd91bf72f3f80d513a6016a9b70bd0b96 Mon Sep 17 00:00:00 2001 From: Dominik Kapusta Date: Thu, 9 Jan 2025 10:37:32 +0100 Subject: [PATCH] Add HTML New Tab Page Privacy Config feature for macOS (#1152) Task/Issue URL: https://app.asana.com/0/0/1209105499479210/f Description: This change adds a new case to the PrivacyFeature enum. --- .../PrivacyConfig/Features/PrivacyFeature.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/BrowserServicesKit/PrivacyConfig/Features/PrivacyFeature.swift b/Sources/BrowserServicesKit/PrivacyConfig/Features/PrivacyFeature.swift index 4bb99735b..f80d37c3b 100644 --- a/Sources/BrowserServicesKit/PrivacyConfig/Features/PrivacyFeature.swift +++ b/Sources/BrowserServicesKit/PrivacyConfig/Features/PrivacyFeature.swift @@ -66,6 +66,7 @@ public enum PrivacyFeature: String { case adAttributionReporting case experimentTest case forceOldAppDelegate + case htmlNewTabPage } /// An abstraction to be implemented by any "subfeature" of a given `PrivacyConfiguration` feature. @@ -195,3 +196,8 @@ public enum ExperimentTestSubfeatures: String, PrivacySubfeature { public var parent: PrivacyFeature { .experimentTest } case experimentTestAA } + +public enum HTMLNewTabPageSubfeature: String, Equatable, PrivacySubfeature { + public var parent: PrivacyFeature { .htmlNewTabPage } + case isLaunched +}