Commit b2e172f5 authored by Kathleen Brade's avatar Kathleen Brade Committed by Georg Koppen
Browse files

Bug 19411: Update icon shows up even if partial updates are failing.

Do not show the "update badge" on the hamburger menu when the update
state is "downloading" (which means fallback to a complete update is
in progress).
parent 147a083d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2668,6 +2668,12 @@ var gMenuButtonUpdateBadge = {
  },

  observe: function (subject, topic, status) {
    if (status == "downloading") {
      // A partial update failed and a complete update is being attempted.
      // Ignore (it does not make sense to show the update badge yet).
      return;
    }

    if (status == "failed") {
      // Background update has failed, let's show the UI responsible for
      // prompting the user to update manually.