diff --git a/browser/components/privatebrowsing/src/nsPrivateBrowsingService.js b/browser/components/privatebrowsing/src/nsPrivateBrowsingService.js index f447b2eaf15..3796b857d00 100644 --- a/browser/components/privatebrowsing/src/nsPrivateBrowsingService.js +++ b/browser/components/privatebrowsing/src/nsPrivateBrowsingService.js @@ -369,7 +369,12 @@ PrivateBrowsingService.prototype = { getService(Ci.nsICacheService)) { // NOTE: there is no way to clear just that domain, so we clear out // everything) - cs.evictEntries(Ci.nsICache.STORE_ANYWHERE); + try { + cs.evictEntries(Ci.nsICache.STORE_ANYWHERE); + } catch (ex) { + Cu.reportError("Exception thrown while clearing the cache: " + + ex.toString()); + } } // Cookies