Bug 1285099 - STATE_PENDING_SVC is not defined in nsUpdateService.js after bug 394984 landed. r=spohl, a=lhenry
authorRobert Strong <robert.bugzilla@gmail.com>
Fri, 15 Jul 2016 13:22:32 -0700
changeset 339957 6893a8d54639abb5d331896858af8a305584c1b6
parent 339956 2299c291b4398bbb8caa79bfc6064102e053e3ff
child 339958 40ae0b4863fdabc0b98cdcc2e499f19b205e90b2
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersspohl, lhenry
bugs1285099, 394984
milestone49.0a2
Bug 1285099 - STATE_PENDING_SVC is not defined in nsUpdateService.js after bug 394984 landed. r=spohl, a=lhenry
toolkit/mozapps/update/nsUpdateService.js
--- a/toolkit/mozapps/update/nsUpdateService.js
+++ b/toolkit/mozapps/update/nsUpdateService.js
@@ -2457,17 +2457,17 @@ UpdateService.prototype = {
     // If a download is in progress or the patch has been staged do nothing.
     if (this.isDownloading) {
       AUSTLMY.pingCheckCode(this._pingSuffix, AUSTLMY.CHK_IS_DOWNLOADING);
       return;
     }
 
     if (this._downloader && this._downloader.patchIsStaged) {
       let readState = readStatusFile(getUpdatesDir());
-      if (readState == STATE_PENDING || readState == STATE_PENDING_SVC ||
+      if (readState == STATE_PENDING || readState == STATE_PENDING_SERVICE ||
           readState == STATE_PENDING_ELEVATE) {
         AUSTLMY.pingCheckCode(this._pingSuffix, AUSTLMY.CHK_IS_DOWNLOADED);
       } else {
         AUSTLMY.pingCheckCode(this._pingSuffix, AUSTLMY.CHK_IS_STAGED);
       }
       return;
     }