133 lines
3.7 KiB
JavaScript
133 lines
3.7 KiB
JavaScript
/* 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/. */
|
|
|
|
/**
|
|
* FEATURE MANIFEST
|
|
* =================
|
|
* Features must be added here to be accessible through the NimbusFeature API.
|
|
*/
|
|
|
|
const EXPORTED_SYMBOLS = ["FeatureManifest"];
|
|
|
|
const FeatureManifest = {
|
|
urlbar: {
|
|
description: "The Address Bar",
|
|
variables: {
|
|
quickSuggestEnabled: {
|
|
type: "boolean",
|
|
fallbackPref: "browser.urlbar.quicksuggest.enabled",
|
|
},
|
|
firefoxSuggestLabelsEnabled: {
|
|
type: "boolean",
|
|
fallbackPref:
|
|
"browser.urlbar.experimental.firefoxSuggestLabels.enabled",
|
|
},
|
|
quickSuggestShouldShowOnboardingDialog: {
|
|
type: "boolean",
|
|
fallbackPref: "browser.urlbar.quicksuggest.shouldShowOnboardingDialog",
|
|
description:
|
|
"Whether or not to show the QuickSuggest onboarding dialog",
|
|
},
|
|
quickSuggestShowOnboardingDialogAfterNRestarts: {
|
|
type: "int",
|
|
fallbackPref:
|
|
"browser.urlbar.quicksuggest.showOnboardingDialogAfterNRestarts",
|
|
description:
|
|
"Show QuickSuggest onboarding dialog after N browser restarts",
|
|
},
|
|
},
|
|
},
|
|
aboutwelcome: {
|
|
description: "The about:welcome page",
|
|
enabledFallbackPref: "browser.aboutwelcome.enabled",
|
|
variables: {
|
|
screens: {
|
|
type: "json",
|
|
fallbackPref: "browser.aboutwelcome.screens",
|
|
},
|
|
isProton: {
|
|
type: "boolean",
|
|
fallbackPref: "browser.proton.enabled",
|
|
},
|
|
skipFocus: {
|
|
type: "boolean",
|
|
fallbackPref: "browser.aboutwelcome.skipFocus",
|
|
},
|
|
transitions: {
|
|
type: "boolean",
|
|
},
|
|
},
|
|
},
|
|
newtab: {
|
|
description: "The about:newtab page",
|
|
variables: {
|
|
newNewtabExperienceEnabled: {
|
|
type: "boolean",
|
|
fallbackPref:
|
|
"browser.newtabpage.activity-stream.newNewtabExperience.enabled",
|
|
},
|
|
customizationMenuEnabled: {
|
|
type: "boolean",
|
|
fallbackPref:
|
|
"browser.newtabpage.activity-stream.customizationMenu.enabled",
|
|
},
|
|
prefsButtonIcon: {
|
|
type: "string",
|
|
},
|
|
},
|
|
},
|
|
"password-autocomplete": {
|
|
description: "A special autocomplete UI for password fields.",
|
|
},
|
|
upgradeDialog: {
|
|
description: "The dialog shown for major upgrades",
|
|
enabledFallbackPref: "browser.startup.upgradeDialog.enabled",
|
|
},
|
|
privatebrowsing: {
|
|
description: "about:privatebrowsing",
|
|
variables: {
|
|
infoEnabled: {
|
|
type: "boolean",
|
|
fallbackPref: "browser.privatebrowsing.infoEnabled",
|
|
},
|
|
infoIcon: {
|
|
type: "string",
|
|
fallbackPref: "browser.privatebrowsing.infoIcon",
|
|
},
|
|
infoTitle: {
|
|
type: "string",
|
|
fallbackPref: "browser.privatebrowsing.infoTitle",
|
|
},
|
|
infoBody: {
|
|
type: "string",
|
|
fallbackPref: "browser.privatebrowsing.infoBody",
|
|
},
|
|
infoLinkText: {
|
|
type: "string",
|
|
fallbackPref: "browser.privatebrowsing.infoLinkText",
|
|
},
|
|
infoLinkUrl: {
|
|
type: "string",
|
|
fallbackPref: "browser.privatebrowsing.infoLinkUrl",
|
|
},
|
|
promoEnabled: {
|
|
type: "boolean",
|
|
fallbackPref: "browser.privatebrowsing.promoEnabled",
|
|
},
|
|
promoTitle: {
|
|
type: "string",
|
|
fallbackPref: "browser.privatebrowsing.promoTitle",
|
|
},
|
|
promoLinkText: {
|
|
type: "string",
|
|
fallbackPref: "browser.privatebrowsing.promoLinkText",
|
|
},
|
|
promoLinkUrl: {
|
|
type: "string",
|
|
fallbackPref: "browser.privatebrowsing.promoLinkUrl",
|
|
},
|
|
},
|
|
},
|
|
};
|