Bug 1641727 - callbackProgress is missing a state argument. r=aceman
authorIan Neal <iann_cvs@blueyonder.co.uk>
Fri, 29 May 2020 10:14:17 +0100
changeset 39283 a637a794de332ef4732caae59627fcb2e6a0a645
parent 39282 b7dc8d39df5624c9812ea5a22cff3b15b61d69c4
child 39284 b9537efaabaf9eeb7c2e2ba9c18b15650c527e5a
push id402
push userclokep@gmail.com
push dateMon, 29 Jun 2020 20:48:04 +0000
reviewersaceman
bugs1641727
Bug 1641727 - callbackProgress is missing a state argument. r=aceman
mail/components/addrbook/content/abCommon.js
--- a/mail/components/addrbook/content/abCommon.js
+++ b/mail/components/addrbook/content/abCommon.js
@@ -1232,17 +1232,17 @@ var gImageDownloader = (function() {
         callbackProgress(STATE_OK, 100);
       }
 
       // Remove the temporary file.
       cleanup();
     };
 
     if (callbackProgress) {
-      callbackProgress(92);
+      callbackProgress(STATE_RESIZING, 92);
     }
 
     img.src = Services.io.newFileURI(tempFile).spec;
   }
 
   /**
    * Scale a graphics object down to a specified maximum dimension while
    * preserving the aspect ratio. Does not upscale an image.