mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 15:26:07 +00:00
Backed out changeset 5496888b745b (bug 1816688) for newtab failures on NimbusFeatures. CLOSED TREE
This commit is contained in:
parent
66c3cdb1b2
commit
725078d014
@ -55,18 +55,6 @@ const L10N = new Localization([
|
||||
const HOMEPAGE_PREF = "browser.startup.homepage";
|
||||
const NEWTAB_PREF = "browser.newtabpage.enabled";
|
||||
|
||||
/**
|
||||
* return the retargeting delay in days for the cookiebanner nimbus experiment
|
||||
*/
|
||||
const cbhRetargetingDelay = () => {
|
||||
const featureVal = lazy.NimbusFeatures.cookieBannerHandling.getVariable(
|
||||
"retargetingDelayInDays"
|
||||
);
|
||||
|
||||
if (!featureVal) return 1;
|
||||
return featureVal;
|
||||
};
|
||||
|
||||
const BASE_MESSAGES = () => [
|
||||
{
|
||||
id: "FXA_ACCOUNTS_BADGE",
|
||||
@ -1058,7 +1046,7 @@ const BASE_MESSAGES = () => [
|
||||
skip_address_bar_notifier: true,
|
||||
},
|
||||
frequency: {
|
||||
custom: [{ period: 24 * 60 * 60 * 1000 * cbhRetargetingDelay(), cap: 1 }],
|
||||
custom: [{ period: 86400000, cap: 1 }],
|
||||
lifetime: 2,
|
||||
},
|
||||
trigger: {
|
||||
@ -1106,7 +1094,7 @@ const BASE_MESSAGES = () => [
|
||||
skip_address_bar_notifier: true,
|
||||
},
|
||||
frequency: {
|
||||
custom: [{ period: 24 * 60 * 60 * 1000 * cbhRetargetingDelay(), cap: 1 }],
|
||||
custom: [{ period: 86400000 * 2, cap: 1 }],
|
||||
lifetime: 2,
|
||||
},
|
||||
trigger: {
|
||||
@ -1154,7 +1142,7 @@ const BASE_MESSAGES = () => [
|
||||
skip_address_bar_notifier: true,
|
||||
},
|
||||
frequency: {
|
||||
custom: [{ period: 24 * 60 * 60 * 1000 * cbhRetargetingDelay(), cap: 1 }],
|
||||
custom: [{ period: 86400000 * 7, cap: 1 }],
|
||||
lifetime: 2,
|
||||
},
|
||||
trigger: {
|
||||
|
@ -952,9 +952,6 @@ cookieBannerHandling:
|
||||
desktopCfrVariant:
|
||||
type: int
|
||||
description: Which variant of the doorhanger the user should receive. 0=unenrolled; 1=control; 2=A; 3=B
|
||||
retargetingDelayInDays:
|
||||
type: int
|
||||
description: How many days to wait before attempting to show the doorhanger a second time.
|
||||
|
||||
accessibilityCache:
|
||||
description: Caches all accessibility information from all documents in the Firefox main process.
|
||||
|
Loading…
x
Reference in New Issue
Block a user