Bug 1074505 - Use a distinct error message for blocked downloads. r=wesj
authorRichard Newman <rnewman@mozilla.com>
Wed, 08 Oct 2014 11:21:02 -0700
changeset 209406 490ecae588c46f0649e57a81cf33ea2fd602c5e9
parent 209405 a71600700b25a4ca1699e575c3ff3e4bd896bd2b
child 209407 f900c41d821dcc22f3bcd3684e3190dcb32e8e1f
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerswesj
bugs1074505
milestone35.0a1
Bug 1074505 - Use a distinct error message for blocked downloads. r=wesj
mobile/android/components/HelperAppDialog.js
mobile/android/locales/en-US/chrome/handling.properties
--- a/mobile/android/components/HelperAppDialog.js
+++ b/mobile/android/components/HelperAppDialog.js
@@ -114,17 +114,17 @@ HelperAppLauncherDialog.prototype = {
       if (!win) {
         // Oops.
         Services.console.logStringMessage("Refusing download, but can't show a toast.");
         return;
       }
 
       Services.console.logStringMessage("Refusing download of non-downloadable file.");
       let bundle = Services.strings.createBundle("chrome://browser/locale/handling.properties");
-      let failedText = bundle.GetStringFromName("protocol.failed");
+      let failedText = bundle.GetStringFromName("download.blocked");
       win.toast.show(failedText, "long");
 
       return;
     }
 
     let bundle = Services.strings.createBundle("chrome://browser/locale/browser.properties");
 
     let defaultHandler = new Object();
--- a/mobile/android/locales/en-US/chrome/handling.properties
+++ b/mobile/android/locales/en-US/chrome/handling.properties
@@ -1,7 +1,8 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
+download.blocked=Unable to download file
 protocol.failed=Couldn't find an app to open this link
 # A very short string shown in the button toast when no application can open the url
 protocol.toast.search=Search