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 de8db91854
commit 3d04f74b97

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", "");