Bug 961177 - Fix "undefined" in download notification string [r=mbrubeck a=sylvestre]
authorAllison Naaktgeboren <ally@mozilla.com>
Mon, 10 Feb 2014 09:45:21 -0800
changeset 182755 9e81f20df0b0a2f7612a1db20c3ef8a3e0204a39
parent 182754 1c0e2c4fb67fa8e78908c150fcb750e657188322
child 182756 f93b0e5dc32770e35be5e304e7bef547e12b9655
push id3343
push userffxbld
push dateMon, 17 Mar 2014 21:55:32 +0000
treeherdermozilla-beta@2f7d3415f79f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmbrubeck, sylvestre
bugs961177
milestone29.0a2
Bug 961177 - Fix "undefined" in download notification string [r=mbrubeck a=sylvestre]
browser/metro/components/HelperAppDialog.js
--- a/browser/metro/components/HelperAppDialog.js
+++ b/browser/metro/components/HelperAppDialog.js
@@ -104,29 +104,29 @@ HelperAppLauncherDialog.prototype = {
         callback: function() { aLauncher.cancel(Cr.NS_BINDING_ABORTED); }
       }
     ];
 
     let window = Services.wm.getMostRecentWindow("navigator:browser");
     let chromeWin = this._getChromeWindow(window).wrappedJSObject;
     let notificationBox = chromeWin.Browser.getNotificationBox();
     let document = notificationBox.ownerDocument;
-    downloadSize = this._getDownloadSize(aLauncher.contentLength);
+    let downloadSize = this._getDownloadSize(aLauncher.contentLength);
 
     let msg = browserBundle.GetStringFromName("alertDownloadSave2");
 
     let fragment =  ContentUtil.populateFragmentFromString(
                       document.createDocumentFragment(),
                       msg,
                       {
                         text: aLauncher.suggestedFileName,
                         className: "download-filename-text"
                       },
                       {
-                        text: aLauncher.downloadSize,
+                        text: downloadSize,
                         className: "download-size-text"
                       },
                       {
                         text: aLauncher.source.host,
                         className: "download-host-text"
                       }
                     );
     let newBar = notificationBox.appendNotification("",