Commit a607b122 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃 Committed by Beatriz Rizental
Browse files

BB 42061: Create an alpha update channel.

parent bf752f03
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -205,7 +205,7 @@ appUpdater.prototype = {
      if (aChildID == "downloadAndInstall") {
        let updateVersion = gAppUpdater.update.displayVersion;
        // Include the build ID if this is an "a#" (nightly or aurora) build
        if (/a\d+$/.test(updateVersion)) {
        if (!AppConstants.BASE_BROWSER_UPDATE && /a\d+$/.test(updateVersion)) {
          let buildID = gAppUpdater.update.buildID;
          let year = buildID.slice(0, 4);
          let month = buildID.slice(4, 6);
+0 −6
Original line number Diff line number Diff line
@@ -59,12 +59,6 @@ function init() {

  let version = Services.appinfo.version;
  if (/a\d+$/.test(version)) {
    let buildID = Services.appinfo.appBuildID;
    let year = buildID.slice(0, 4);
    let month = buildID.slice(4, 6);
    let day = buildID.slice(6, 8);
    versionAttributes.isodate = `${year}-${month}-${day}`;

    document.getElementById("experimental").hidden = false;
    document.getElementById("communityDesc").hidden = true;
  }
+2 −8
Original line number Diff line number Diff line
@@ -758,14 +758,8 @@ var gMainPane = {
    // Initialize the Firefox Updates section.
    let version = AppConstants.BASE_BROWSER_VERSION;

    // Include the build ID if this is an "a#" (nightly) build
    if (/a\d+$/.test(version)) {
      let buildID = Services.appinfo.appBuildID;
      let year = buildID.slice(0, 4);
      let month = buildID.slice(4, 6);
      let day = buildID.slice(6, 8);
      version += ` (${year}-${month}-${day})`;
    }
    // Base Browser and derivatives: do not include the build ID in our alphas,
    // since they are not actually related to the build date.

    // Append "(32-bit)" or "(64-bit)" build architecture to the version number:
    let bundle = Services.strings.createBundle(
+5 −0
Original line number Diff line number Diff line
@@ -71,6 +71,11 @@ async function getRuntimeIcon(runtime, channel) {
    }
  }

  // Use the release build skin for devtools within Tor Browser alpha releases.
  if (channel === "alpha") {
    return "chrome://devtools/skin/images/aboutdebugging-firefox-release.svg";
  }

  return channel === "release" || channel === "beta" || channel === "aurora"
    ? `chrome://devtools/skin/images/aboutdebugging-firefox-${channel}.svg`
    : "chrome://devtools/skin/images/aboutdebugging-firefox-nightly.svg";
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ var PREF_CHECK_COMPATIBILITY;
  var channel = Services.prefs.getCharPref("app.update.channel", "default");
  if (
    channel != "aurora" &&
    channel != "alpha" &&
    channel != "beta" &&
    channel != "release" &&
    channel != "esr"
Loading