summaryrefslogtreecommitdiffstats
path: root/browser/components/asrouter/modules/MessagingExperimentConstants.sys.mjs
blob: 5a07efb687611d6155c784f38b33587b6007b58e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/**
 * This file is used to define constants related to messaging experiments. It is
 * imported by both ASRouter as well as import-rollouts.js, a node script that
 * imports Nimbus rollouts into tree. It doesn't have access to any Firefox
 * APIs, XPCOM, etc. and should be kept that way.
 */

/**
 * These are the Nimbus feature IDs that correspond to messaging experiments.
 * Other Nimbus features contain specific variables whose keys are enumerated in
 * FeatureManifest.yaml. Conversely, messaging experiment features contain
 * actual messages, with the usual message keys like `template` and `targeting`.
 * @see FeatureManifest.yaml
 * Messages delivered through these feature IDs record reach events, with the
 * exception of "pbNewtab". If you're adding new features to this list, make
 * sure they're also added in the `messaging_experiments.reach.objects` defined
 * in "toolkit/components/telemetry/Events.yaml"
 */
export const MESSAGING_EXPERIMENTS_DEFAULT_FEATURES = [
  "cfr",
  "fxms-message-1",
  "fxms-message-2",
  "fxms-message-3",
  "fxms-message-4",
  "fxms-message-5",
  "fxms-message-6",
  "fxms-message-7",
  "fxms-message-8",
  "fxms-message-9",
  "fxms-message-10",
  "fxms-message-11",
  "infobar",
  "moments-page",
  "pbNewtab",
  "spotlight",
  "featureCallout",
];