Bug 820366 - UNSUFFICIENT_STORAGE error is not triggered correctly at restart. r=fabrice
authorFernando Jiménez <ferjmoreno@gmail.com>
Tue, 11 Dec 2012 21:58:38 +0100
changeset 118840 4e00b7fbaa9062cd67632755c1ba8423858e220e
parent 118839 77b1dc0a13f8d89bebca2a6fb76ddc5a100e0d4f
child 118841 c0ed4a465b7afd4dc251a53a64d850d4af486235
push id2961
push userryanvm@gmail.com
push dateFri, 14 Dec 2012 03:05:01 +0000
treeherdermozilla-aurora@d0a8a8173ef1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs820366
milestone19.0a2
Bug 820366 - UNSUFFICIENT_STORAGE error is not triggered correctly at restart. r=fabrice
dom/apps/src/Webapps.jsm
--- a/dom/apps/src/Webapps.jsm
+++ b/dom/apps/src/Webapps.jsm
@@ -932,19 +932,21 @@ this.DOMApplicationRegistry = {
 
     this._loadJSONAsync(file, (function(aJSON) {
       if (!aJSON) {
         debug("startDownload: No update manifest found at " + file.path + " " + aManifestURL);
         return;
       }
 
       let manifest = new ManifestHelper(aJSON, app.installOrigin);
-      this.downloadPackage(manifest, { manifestURL: aManifestURL,
-                                       origin: app.origin }, isUpdate,
-        function(aId, aManifest) {
+      this.downloadPackage(manifest, {
+          manifestURL: aManifestURL,
+          origin: app.origin,
+          downloadSize: app.downloadSize
+        }, isUpdate, function(aId, aManifest) {
           // Success! Keep the zip in of TmpD, we'll move it out when
           // applyDownload() will be called.
           let tmpDir = FileUtils.getDir("TmpD", ["webapps", aId], true, true);
 
           // Save the manifest in TmpD also
           let manFile = tmpDir.clone();
           manFile.append("manifest.webapp");
           DOMApplicationRegistry._writeFile(manFile,