Bug 1062622 - Add catch function in Sanitizer.jsm. r=wesj

This commit is contained in:
Brian Nicholson 2014-09-04 10:31:13 -07:00
parent 2c04333cc7
commit 7f60191215

View File

@ -154,7 +154,7 @@ Sanitizer.prototype = {
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", "");