Copy as Markdown
Other Tools
/* 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,
/**
* AppConstants is a set of immutable constants that are defined at build time.
* These should not depend on any other JavaScript module.
*/
export var AppConstants = Object.freeze({
// See this wiki page for more details about channel specific build
NIGHTLY_BUILD: true,
ENABLE_EXPLICIT_RESOURCE_MANAGEMENT: true,
RELEASE_OR_BETA: false,
EARLY_BETA_OR_EARLIER: true,
IS_ESR: false,
ACCESSIBILITY: true,
// Official corresponds, roughly, to whether this build is performed
// on Mozilla's continuous integration infrastructure. You should
// disable developer-only functionality when this flag is set.
MOZILLA_OFFICIAL: false,
MOZ_OFFICIAL_BRANDING: false,
MOZ_DEV_EDITION: false,
MOZ_SERVICES_SYNC: true,
MOZ_DATA_REPORTING: true,
MOZ_SANDBOX: true,
MOZ_TELEMETRY_REPORTING:
//@line 46 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
false,
//@line 48 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
MOZ_UPDATER: true,
MOZ_WEBRTC: true,
MOZ_WIDGET_GTK:
//@line 57 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
false,
//@line 59 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
MOZ_WMF_CDM: false,
XP_UNIX:
//@line 64 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
true,
//@line 68 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
// NOTE! XP_LINUX has to go after MOZ_WIDGET_ANDROID otherwise Android
// builds will be misidentified as linux.
platform:
//@line 77 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
"macosx",
//@line 87 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
// Most of our frontend code assumes that any desktop Unix platform
// is "linux". Add the distinction for code that needs it.
unixstyle:
//@line 102 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
"other",
//@line 104 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
isPlatformAndVersionAtLeast(platform, version) {
let platformVersion = Services.sysinfo.getProperty("version");
return platform == this.platform &&
Services.vc.compare(platformVersion, version) >= 0;
},
isPlatformAndVersionAtMost(platform, version) {
let platformVersion = Services.sysinfo.getProperty("version");
return platform == this.platform &&
Services.vc.compare(platformVersion, version) <= 0;
},
MOZ_CRASHREPORTER: true,
MOZ_NORMANDY: true,
MOZ_MAINTENANCE_SERVICE: false,
MOZ_BACKGROUNDTASKS: true,
MOZ_UPDATE_AGENT: true,
MOZ_BITS_DOWNLOAD: false,
DEBUG: true,
ASAN: false,
ASAN_REPORTER: false,
TSAN: false,
MOZ_SYSTEM_NSS: false,
MOZ_PLACES: true,
MOZ_REQUIRE_SIGNING: false,
MOZ_UNSIGNED_APP_SCOPE: false,
MOZ_UNSIGNED_SYSTEM_SCOPE: false,
MOZ_ALLOW_ADDON_SIDELOAD: false,
MOZ_WEBEXT_WEBIDL_ENABLED: true,
MOZ_GECKOVIEW_HISTORY: false,
MOZ_GECKO_PROFILER: true,
BROWSER_NEWTAB_AS_ADDON: true,
DLL_PREFIX: "lib",
DLL_SUFFIX: ".dylib",
MOZ_APP_NAME: "firefox",
MOZ_APP_BASENAME: "Firefox",
// N.b.: you almost certainly want brandShortName/brand-short-name:
// MOZ_APP_DISPLAYNAME should only be used for static user-visible
// fields (e.g., DLL properties, Mac Bundle name, or similar).
MOZ_APP_DISPLAYNAME_DO_NOT_USE: "Nightly",
MOZ_APP_VERSION: "139.0a1",
MOZ_APP_VERSION_DISPLAY: "139.0a1",
MOZ_BUILDID: "20250419094613",
MOZ_BUILD_APP: "browser",
MOZ_MACBUNDLE_ID: "org.mozilla.nightlydebug",
MOZ_MACBUNDLE_NAME: "NightlyDebug.app",
MOZ_UPDATE_CHANNEL: "default",
MOZ_WIDGET_TOOLKIT: "cocoa",
DEBUG_JS_MODULES: "",
MOZ_BING_API_CLIENTID: "no-bing-api-clientid",
MOZ_BING_API_KEY: "no-bing-api-key",
MOZ_GOOGLE_LOCATION_SERVICE_API_KEY: "no-google-location-service-api-key",
MOZ_GOOGLE_SAFEBROWSING_API_KEY: "no-google-safebrowsing-api-key",
MOZ_MOZILLA_API_KEY: "no-mozilla-api-key",
BROWSER_CHROME_URL: "chrome://browser/content/browser.xhtml",
OMNIJAR_NAME: "omni.ja",
// URL to the hg revision this was built from (e.g.
// On unofficial builds, this is an empty string.
//@line 193 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
SOURCE_REVISION_URL: "",
HAVE_USR_LIB64_DIR:
//@line 199 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
false,
//@line 201 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
HAVE_SHELL_SERVICE: true,
MOZ_CODE_COVERAGE: false,
TELEMETRY_PING_FORMAT_VERSION: 4,
ENABLE_WEBDRIVER: true,
REMOTE_SETTINGS_SERVER_URL:
//@line 214 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
//@line 216 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
REMOTE_SETTINGS_VERIFY_SIGNATURE:
//@line 221 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
true,
//@line 223 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
REMOTE_SETTINGS_DEFAULT_BUCKET:
//@line 228 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
"main",
//@line 230 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
MOZ_GLEAN_ANDROID: false,
MOZ_JXL: true,
//@line 251 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
MOZ_SYSTEM_POLICIES: true,
MOZ_SELECTABLE_PROFILES: true,
SQLITE_LIBRARY_FILENAME:
//@line 258 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
"libnss3.dylib",
//@line 262 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
MOZ_GECKOVIEW:
//@line 267 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
false,
//@line 269 "$SRCDIR/toolkit/modules/AppConstants.sys.mjs"
USE_LIBZ_RS: true,
});