mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1062622 - Add catch function in Sanitizer.jsm. r=wesj
This commit is contained in:
parent
de8db91854
commit
3d04f74b97
@ -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