From eaa0094e53c33302a4795a586ef391fad76231ba Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 24 Feb 2019 11:28:28 -0500 Subject: [PATCH] Fix uncaugh exception at launch when indexedDB is forbidden Possibly related to: - https://www.reddit.com/r/uBlockOrigin/comments/atbjvg/web_pages_dont_load_in_waterfox_56271_64bit_with/ --- src/js/cachestorage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/cachestorage.js b/src/js/cachestorage.js index 06f841780..dc330786c 100644 --- a/src/js/cachestorage.js +++ b/src/js/cachestorage.js @@ -505,7 +505,10 @@ }; const clearIDB = function() { - indexedDB.deleteDatabase(STORAGE_NAME); + try { + indexedDB.deleteDatabase(STORAGE_NAME); + } catch(ex) { + } }; return api;