@@ -4117,6 +4117,20 @@ def __post_init__(self):
41174117 application_choice_names = (Application .DESKTOP .name ,),
41184118)
41194119
4120+ FX_151_TRAINHOP = NimbusTargetingConfig (
4121+ name = "New Tab Fx151 Mar-27 Trainhop" ,
4122+ slug = "newtab-151-0327-trainhop" ,
4123+ description = (
4124+ "Desktop users having the New Tab 151.1.20260327.141953 train hop, "
4125+ "which includes users of Fx149"
4126+ ),
4127+ targeting = "newtabAddonVersion|versionCompare('151.1.20260327.141953') >= 0" ,
4128+ desktop_telemetry = "" ,
4129+ sticky_required = False ,
4130+ is_first_run_required = False ,
4131+ application_choice_names = (Application .DESKTOP .name ,),
4132+ )
4133+
41204134BUILDID_20251006095753 = NimbusTargetingConfig (
41214135 name = "Build ID 20251006095753 or higher" ,
41224136 slug = "buildid-20251006095753" ,
@@ -4256,6 +4270,53 @@ def __post_init__(self):
42564270)
42574271
42584272
4273+ EDITORIAL_CONTENT_MARKETS = (
4274+ "['AT', 'BE', 'CA', 'CH', 'DE', 'ES', 'FR', 'GB', 'IE', 'IN', 'IT', 'US']"
4275+ )
4276+
4277+ EDITORIAL_CONTENT_AVAILABLE_MARKETS = NimbusTargetingConfig (
4278+ name = "New Tab Editorial Content Available Markets" ,
4279+ slug = "newtab-editorial-content-markets" ,
4280+ description = ("Users in markets where Firefox New Tab Editorial Content is available" ),
4281+ targeting = f"region in { EDITORIAL_CONTENT_MARKETS } " ,
4282+ desktop_telemetry = "" ,
4283+ sticky_required = False ,
4284+ is_first_run_required = False ,
4285+ application_choice_names = (Application .DESKTOP .name ,),
4286+ )
4287+
4288+ EDITORIAL_CONTENT_UNAVAILABLE_MARKETS = NimbusTargetingConfig (
4289+ name = "New Tab Editorial Content Unavailable Markets" ,
4290+ slug = "newtab-non-editorial-content-markets" ,
4291+ description = (
4292+ "Users in markets where Firefox New Tab Editorial Content is NOT available"
4293+ ),
4294+ targeting = f"(region in { EDITORIAL_CONTENT_MARKETS } ) != true" ,
4295+ desktop_telemetry = "" ,
4296+ sticky_required = False ,
4297+ is_first_run_required = False ,
4298+ application_choice_names = (Application .DESKTOP .name ,),
4299+ )
4300+
4301+ TOPSITES_1ROW_NON_EDITORIAL_FX151_TRAINHOP = NimbusTargetingConfig (
4302+ name = "Non-Editorial Markets, 1-Row Top Sites, Fx151 Trainhop" ,
4303+ slug = "topsites-1row-non-editorial-fx151-trainhop" ,
4304+ description = (
4305+ "Desktop users in non-editorial content markets, with top sites rows set to 1, "
4306+ "having the New Tab 151.1.20260327.141953 train hop"
4307+ ),
4308+ targeting = (
4309+ f"(region in { EDITORIAL_CONTENT_MARKETS } ) != true"
4310+ f" && { FX_151_TRAINHOP .targeting } "
4311+ " && 'browser.newtabpage.activity-stream.topSitesRows'|preferenceValue == 1"
4312+ ),
4313+ desktop_telemetry = "" ,
4314+ sticky_required = True ,
4315+ is_first_run_required = False ,
4316+ application_choice_names = (Application .DESKTOP .name ,),
4317+ )
4318+
4319+
42594320class TargetingConstants :
42604321 TARGETING_CONFIGS = {
42614322 targeting .slug : targeting for targeting in NimbusTargetingConfig .targeting_configs
0 commit comments