Closed Bug 1062622 Opened 10 years ago Closed 10 years ago

Add function to empty Sanitizer.jsm catch()

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 35

People

(Reporter: bnicholson, Assigned: bnicholson)

References

Details

Attachments

(1 file)

promise.catch() requires a function, so the following then() block is currently broken in Sanitizer.jsm.
Attachment #8483855 - Flags: review?(wjohnston)
Comment on attachment 8483855 [details] [diff] [review]
Add empty catch handler in Sanitizer.jsm

Review of attachment 8483855 [details] [diff] [review]:
-----------------------------------------------------------------

::: mobile/android/modules/Sanitizer.jsm
@@ +153,5 @@
>      history: {
>        clear: function ()
>        {
>          return Messaging.sendRequestForResult({ type: "Sanitize:ClearHistory" })
> +          .catch(() => {}) // Purge Gecko-side data even if request failed

We should probably log this. Cu.reportError?
Attachment #8483855 - Flags: review?(wjohnston) → review+
https://hg.mozilla.org/mozilla-central/rev/42e164ec81d3
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 35
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: