Skip to content

Commit 0656e54

Browse files
committed
Bug 1882662 - Add checkDefaultBrowser pref check to fox doodle message targeting r=omc-reviewers,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D204268
1 parent 877bb5b commit 0656e54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

browser/components/asrouter/modules/OnboardingMessageProvider.sys.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ const BASE_MESSAGES = () => [
11291129
lifetime: 2,
11301130
},
11311131
targeting:
1132-
"source == 'startup' && !isMajorUpgrade && !activeNotifications && !isDefaultBrowser && !willShowDefaultPrompt && (currentDate|date - profileAgeCreated|date) / 86400000 >= 28 && userPrefs.cfrFeatures == true",
1132+
"source == 'startup' && !isMajorUpgrade && !activeNotifications && !isDefaultBrowser && !willShowDefaultPrompt && 'browser.shell.checkDefaultBrowser'|preferenceValue && (currentDate|date - profileAgeCreated|date) / 86400000 >= 28 && userPrefs.cfrFeatures == true",
11331133
trigger: {
11341134
id: "defaultBrowserCheck",
11351135
},
@@ -1205,7 +1205,7 @@ const BASE_MESSAGES = () => [
12051205
lifetime: 1,
12061206
},
12071207
targeting:
1208-
"source == 'startup' && !isMajorUpgrade && !activeNotifications && !isDefaultBrowser && !willShowDefaultPrompt && (currentDate|date - profileAgeCreated|date) / 86400000 <= 28 && (currentDate|date - profileAgeCreated|date) / 86400000 >= 7 && userPrefs.cfrFeatures == true",
1208+
"source == 'startup' && !isMajorUpgrade && !activeNotifications && !isDefaultBrowser && !willShowDefaultPrompt && 'browser.shell.checkDefaultBrowser'|preferenceValue && (currentDate|date - profileAgeCreated|date) / 86400000 <= 28 && (currentDate|date - profileAgeCreated|date) / 86400000 >= 7 && userPrefs.cfrFeatures == true",
12091209
trigger: {
12101210
id: "defaultBrowserCheck",
12111211
},

0 commit comments

Comments
 (0)