Fennec F-Droid fails to clear site settings
To reproduce:
- Go on
Settings -> Clear Private Data
- Check
Site settings
and clickClear data
The error message Some private data could not be cleared
is displayed.
Trying to debug this using the web console brought me to understand that the part of the code that is failing is the one that handles the clearing of push subscriptions: https://hg.mozilla.org/releases/mozilla-esr68/file/tip/mobile/android/modules/Sanitizer.jsm#l194
>> Sanitizer.clearItem('siteSettings')
Promise { <state>: "pending" }
Error: Error clearing push subscriptions: 2147500037
That error code is the numeric value of the constant Cr.NS_ERROR_FAILURE
.
The official version released by Mozilla doesn't have this problem.