Bug 1382706 - Listen for pending-elevate in Update-Listener. r=rstrong, a=jcristau
authorDoug Thayer <dothayer@mozilla.com>
Thu, 20 Jul 2017 16:09:36 -0700
changeset 414416 293c71a18bc783fec69f6b925b8954e12344e728
parent 414415 c2635cb28a2fb7de2bb03e85a3706cbe78f196b5
child 414417 a25e16b5b8a9c38733a2bdaf2757619eb656c1a6
push id1490
push usermtabara@mozilla.com
push dateMon, 31 Jul 2017 14:08:16 +0000
treeherdermozilla-release@70e32e6bf15e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrstrong, jcristau
bugs1382706
milestone55.0
Bug 1382706 - Listen for pending-elevate in Update-Listener. r=rstrong, a=jcristau We were missing a possible status in the list for the downloaded topic. This should be all that we need to get the notification to show up. MozReview-Commit-ID: EQSccrdv30Y
toolkit/mozapps/update/UpdateListener.jsm
--- a/toolkit/mozapps/update/UpdateListener.jsm
+++ b/toolkit/mozapps/update/UpdateListener.jsm
@@ -156,16 +156,17 @@ var UpdateListener = {
   },
 
   handleUpdateStagedOrDownloaded(update, status) {
     switch (status) {
       case "applied":
       case "pending":
       case "applied-service":
       case "pending-service":
+      case "pending-elevate":
       case "success":
         this.clearCallbacks();
 
         let badgeWaitTimeMs = this.badgeWaitTime * 1000;
         let doorhangerWaitTimeMs = update.promptWaitTime * 1000;
 
         if (badgeWaitTimeMs < doorhangerWaitTimeMs) {
           this.addTimeout(badgeWaitTimeMs, () => {