mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1062622 - Add catch function in Sanitizer.jsm. r=wesj
This commit is contained in:
parent
2c04333cc7
commit
7f60191215
@ -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", "");
|
||||
|
Loading…
Reference in New Issue
Block a user