Bug 1062622 - Add catch function in Sanitizer.jsm. r=wesj
authorBrian Nicholson <bnicholson@mozilla.com>
Thu, 04 Sep 2014 10:31:13 -0700
changeset 203540 42e164ec81d3016262ca1a26480c41c3d84d5cdf
parent 203539 b33d49538c4c28d4ee7df7e35f6b61d8770fd353
child 203541 3da93d34897d4654583a8a39c57b65f0f8113fed
push idunknown
push userunknown
push dateunknown
reviewerswesj
bugs1062622
milestone35.0a1
Bug 1062622 - Add catch function in Sanitizer.jsm. r=wesj
mobile/android/modules/Sanitizer.jsm
--- a/mobile/android/modules/Sanitizer.jsm
+++ b/mobile/android/modules/Sanitizer.jsm
@@ -149,17 +149,17 @@ Sanitizer.prototype = {
           return true;
       }
     },
 
     history: {
       clear: function ()
       {
         return Messaging.sendRequestForResult({ type: "Sanitize:ClearHistory" })
-          .catch() // Purge Gecko-side data even if request failed
+          .catch(e => Cu.reportError("Java-side history clearing failed: " + e))
           .then(function() {
             try {
               Services.obs.notifyObservers(null, "browser:purge-session-history", "");
             }
             catch (e) { }
 
             try {
               var predictor = Cc["@mozilla.org/network/predictor;1"].getService(Ci.nsINetworkPredictor);