gecko-dev/netwerk/cache2
sunil mayya 342149fc2f Bug 1845848 - prevent disk cache entries eviction for private browsing mode. r=necko-reviewers,valentin
The assertion in the bug is because we were trying to evict disk cache entries in the context of private browsing mode.
Generally, for Private browsing mode we don't write use Disk Storage. During the [initialization](https://searchfox.org/mozilla-central/source/netwerk/cache2/CacheStorageService.cpp#1557).  of storage entry, WriteToDisk[https://searchfox.org/mozilla-central/rev/5f0a7ca8968ac5cef8846e1d970ef178b8b76dcc/netwerk/cache2/CacheStorage.h#54] will be false due to private browsing mode. Due to this, we are sure that private browsing mode cache entries wont be written to disks.

The solution for the bug here is to prevent an attempt to evict the disk cache entries in private browsing mode, similar to the check in [DoomStorageEntries](https://searchfox.org/mozilla-central/source/netwerk/cache2/CacheStorageService.cpp#1929).

Differential Revision: https://phabricator.services.mozilla.com/D204810
2024-03-18 08:49:10 +00:00
..
CacheEntry.cpp
CacheEntry.h Bug 1875859 - Refactor MemoryPool::PurgeExpired and PurgeByFrecency to reduce overhead and protect against races while sorting. r=necko-reviewers,valentin 2024-02-12 12:22:03 +00:00
CacheFile.cpp
CacheFile.h
CacheFileChunk.cpp
CacheFileChunk.h
CacheFileContextEvictor.cpp
CacheFileContextEvictor.h
CacheFileInputStream.cpp
CacheFileInputStream.h
CacheFileIOManager.cpp Bug 1854621 - Remove unused NETWORK_CACHE_SIZE_FULL_FAT r=necko-reviewers,kershaw 2024-02-12 13:49:33 +00:00
CacheFileIOManager.h Bug 1848542 - Do a cache cleanup when cache purging is enabled r=necko-reviewers,kershaw 2023-11-21 17:29:08 +00:00
CacheFileMetadata.cpp
CacheFileMetadata.h Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,media-playback-reviewers,padenot 2023-12-04 10:09:36 +00:00
CacheFileOutputStream.cpp
CacheFileOutputStream.h
CacheFileUtils.cpp Bug 1770944 - Remove other references to inBrowserElement, r=cookie-reviewers,valentin,janv,decoder 2024-03-07 13:04:23 +00:00
CacheFileUtils.h
CacheHashUtils.cpp
CacheHashUtils.h
CacheIndex.cpp
CacheIndex.h
CacheIndexContextIterator.cpp
CacheIndexContextIterator.h
CacheIndexIterator.cpp
CacheIndexIterator.h
CacheIOThread.cpp Bug 1862556: Allow LongTask markers to be generated for any nsThread r=nika 2023-12-07 04:15:44 +00:00
CacheIOThread.h
CacheLog.cpp
CacheLog.h
CacheObserver.cpp Bug 1848542 - Do a cache cleanup when cache purging is enabled r=necko-reviewers,kershaw 2023-11-21 17:29:08 +00:00
CacheObserver.h
CachePurgeLock.cpp
CachePurgeLock.h
CacheStorage.cpp
CacheStorage.h
CacheStorageService.cpp Bug 1845848 - prevent disk cache entries eviction for private browsing mode. r=necko-reviewers,valentin 2024-03-18 08:49:10 +00:00
CacheStorageService.h Bug 1879814 - Rename network.cache.purgebyfrecency_minprogress_xxx to network.cache.purge_minprogress_xxx and use it for all purge variants. r=necko-reviewers,jesup,valentin 2024-03-04 08:45:45 +00:00
moz.build
nsICacheEntry.idl
nsICacheEntryDoomCallback.idl
nsICacheEntryOpenCallback.idl
nsICachePurgeLock.idl
nsICacheStorage.idl
nsICacheStorageService.idl
nsICacheStorageVisitor.idl
nsICacheTesting.idl