Skip to content

Commit ac91995

Browse files
authored
fixes #14993 feat(nimbus): Targeting criteria request (#15064)
Create targeting for profiles that are: Windows 10+ users 0 days of activity in the past 28 days Are running a background task Have not unchecked "Recommend extensions as you browse" or "Recommend features as you browse" in about:preferences Fixes #14993
1 parent 6d59682 commit ac91995

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

experimenter/experimenter/targeting/constants.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2088,6 +2088,42 @@ def __post_init__(self):
20882088
application_choice_names=(Application.DESKTOP.name,),
20892089
)
20902090

2091+
WINDOWS_10_PLUS_BG_TASK_NOTIFICATION_LAPSED_USER_CFR_ENABLED = NimbusTargetingConfig(
2092+
name="Lapsed users background task notification (recommendations enabled)",
2093+
slug="background_task_notification_lapsed_user_cfr_enabled",
2094+
description=(
2095+
"Windows 10+ users with 0 days of activity in the past 28 days "
2096+
"who are running a background task and have not disabled "
2097+
"'Recommend extensions as you browse' or "
2098+
"'Recommend features as you browse'"
2099+
),
2100+
targeting="""
2101+
(
2102+
(
2103+
os.isWindows
2104+
&&
2105+
(os.windowsVersion >= 10)
2106+
)
2107+
&&
2108+
(
2109+
((defaultProfile|keys)|length == 0)
2110+
||
2111+
(defaultProfile.userMonthlyActivity|length == 0)
2112+
)
2113+
&&
2114+
isBackgroundTaskMode
2115+
&&
2116+
'browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features'|preferenceValue
2117+
&&
2118+
'browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons'|preferenceValue
2119+
)
2120+
""",
2121+
desktop_telemetry="",
2122+
sticky_required=True,
2123+
is_first_run_required=False,
2124+
application_choice_names=(Application.DESKTOP.name,),
2125+
)
2126+
20912127
NEWTAB_SPONSORED_TOPSITES_ENABLED = NimbusTargetingConfig(
20922128
name="Newtab has Sponsored TopSites enabled ",
20932129
slug="newtab_sponsored_topsites_enabled",

0 commit comments

Comments
 (0)