MessagingExperimentConstants.sys.mjs (1933B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 /** 6 * This file is used to define constants related to messaging experiments. It is 7 * imported by both ASRouter as well as import-rollouts.js, a node script that 8 * imports Nimbus rollouts into tree. It doesn't have access to any Firefox 9 * APIs, XPCOM, etc. and should be kept that way. 10 */ 11 12 /** 13 * These are the Nimbus feature IDs that correspond to messaging experiments. 14 * Other Nimbus features contain specific variables whose keys are enumerated in 15 * FeatureManifest.yaml. Conversely, messaging experiment features contain 16 * actual messages, with the usual message keys like `template` and `targeting`. 17 * 18 * @see FeatureManifest.yaml 19 * Messages delivered through these feature IDs record reach events, with the 20 * exception of "pbNewtab". If you're adding new features to this list, make 21 * sure they're also added in the `messaging_experiments.reach.objects` defined 22 * in "toolkit/components/telemetry/Events.yaml", and as new event metrics in 23 * "toolkit/components/messaging-system/metrics.yaml". 24 */ 25 export const MESSAGING_EXPERIMENTS_DEFAULT_FEATURES = [ 26 "cfr", 27 "fxms_bmb_button", 28 "fxms-message-1", 29 "fxms-message-2", 30 "fxms-message-3", 31 "fxms-message-4", 32 "fxms-message-5", 33 "fxms-message-6", 34 "fxms-message-7", 35 "fxms-message-8", 36 "fxms-message-9", 37 "fxms-message-10", 38 "fxms-message-11", 39 "fxms-message-12", 40 "fxms-message-13", 41 "fxms-message-14", 42 "fxms-message-15", 43 "fxms-message-16", 44 "fxms-message-17", 45 "fxms-message-18", 46 "fxms-message-19", 47 "fxms-message-20", 48 "fxms-message-21", 49 "fxms-message-22", 50 "fxms-message-23", 51 "fxms-message-24", 52 "fxms-message-25", 53 "infobar", 54 "moments-page", 55 "pbNewtab", 56 "setToDefaultPrompt", 57 "spotlight", 58 "featureCallout", 59 ];