gecko-dev/dom/quota
Luca Greco e723364e2c Bug 1720487 - Ensure QuotaManager does not evict PERSISTENT_TYPE_DEFAULT data associated to a WebExtension origin. r=dom-storage-reviewers,asuth
This patch introduce an additional check inside the Helper::GetInactiveOriginInfos static method
used internally by CollectOriginsForEviction to ensure that QuotaManager will not select an
extension origin as an inactive origin to evict non persisted data from.

The rationale is that unlike websites (which may more likely using the locally stored data
as a local cache, but still able to retrieve the same data again from the server side),
extensions do not have a remote counterpart and so evicting their data would result
into potential data loss for the users.

Besides that, the browser extensions (unlike websites) are explicitly installed and uninstalled by
the user and all the data associated to the extension will be completely removed when the
extension is uninstalled.

Differential Revision: https://phabricator.services.mozilla.com/D120470
2021-07-21 19:27:45 +00:00
..
scripts Bug 1711703: Ensure we split stacks before errors after warnings. r=dom-storage-reviewers,janv DONTBUILD 2021-06-03 17:15:51 +00:00
test Bug 1720487 - Ensure QuotaManager does not evict PERSISTENT_TYPE_DEFAULT data associated to a WebExtension origin. r=dom-storage-reviewers,asuth 2021-07-21 19:27:45 +00:00
ActorsChild.cpp
ActorsChild.h
ActorsParent.cpp Bug 1720487 - Ensure QuotaManager does not evict PERSISTENT_TYPE_DEFAULT data associated to a WebExtension origin. r=dom-storage-reviewers,asuth 2021-07-21 19:27:45 +00:00
ActorsParent.h Bug 1713820 - Move QM_ENABLE_SCOPED_LOG_EXTRA_INFO definition to Config.h; r=dom-storage-reviewers,jstutte 2021-06-08 16:27:29 +00:00
CachingDatabaseConnection.cpp Bug 1713820 - Use QM_SCOPED_LOG_EXTRA_INFO_ENABLED in CachingDatabaseConnection instead of defined(EARLY_BETA_OR_EARLIER) || defined(DEBUG); r=dom-storage-reviewers,jstutte 2021-06-08 16:27:30 +00:00
CachingDatabaseConnection.h Bug 1718190 - QM: Move ScopedLogExtraInfo into own h/cpp files; r=dom-storage-reviewers,jstutte 2021-06-25 10:21:27 +00:00
CheckedUnsafePtr.h Bug 1519636 - Initial reformat of C/C++ code with clang-format version 12.0.0. r=sylvestre 2021-05-10 07:15:07 +00:00
CipherStrategy.h
Client.cpp Bug 1715144 - Part 1: Stop adding /ipc/glue to LOCAL_INCLUDES when including chromium-config.mozbuild, r=ipc-reviewers,necko-reviewers,mccr8,valentin 2021-06-09 04:56:48 +00:00
Client.h
ClientImpl.h
CommonMetadata.h
components.conf
Config.h Bug 1713820 - Enable QM_TRY reporting to the browser console in release builds; r=dom-storage-reviewers,jstutte 2021-06-08 16:27:32 +00:00
DecryptingInputStream_impl.h
DecryptingInputStream.cpp
DecryptingInputStream.h
DirectoryLock.h Bug 1690025 - Move and rename DirectoryLock::Specialize to UniversalDirectoryLock::SpecializeForClient; r=dom-storage-reviewers,asuth 2021-05-02 09:57:15 +00:00
DirectoryLockImpl.cpp Bug 1690025 - Move and rename DirectoryLock::Specialize to UniversalDirectoryLock::SpecializeForClient; r=dom-storage-reviewers,asuth 2021-05-02 09:57:15 +00:00
DirectoryLockImpl.h Bug 1690025 - Move and rename DirectoryLock::Specialize to UniversalDirectoryLock::SpecializeForClient; r=dom-storage-reviewers,asuth 2021-05-02 09:57:15 +00:00
DummyCipherStrategy.h
EncryptedBlock.h
EncryptingOutputStream_impl.h
EncryptingOutputStream.cpp
EncryptingOutputStream.h
FileStreams.cpp
FileStreams.h
FirstInitializationAttempts.h Bug 1716568 - Extract first initialization attempts handling into a generic (templatized) class; r=dom-storage-reviewers,jstutte 2021-06-23 21:26:10 +00:00
FirstInitializationAttemptsImpl.h Bug 1717990 - QM: Ignore NS_ERROR_ABORT in RecordFirstInitializationAttempt; r=dom-storage-reviewers,jstutte 2021-06-25 06:27:58 +00:00
Flatten.h
InitializationTypes.cpp Bug 1716568 - Add support for origin based first initialization attempts handling to InitializationInfo; r=dom-storage-reviewers,asuth 2021-06-23 21:26:10 +00:00
InitializationTypes.h Bug 1716568 - Add support for origin based first initialization attempts handling to InitializationInfo; r=dom-storage-reviewers,asuth 2021-06-23 21:26:10 +00:00
IPCStreamCipherStrategy.h
MemoryOutputStream.cpp
MemoryOutputStream.h
moz.build Bug 1718190 - QM: Move ScopedLogExtraInfo into own h/cpp files; r=dom-storage-reviewers,jstutte 2021-06-25 10:21:27 +00:00
nsIndexedDBProtocolHandler.cpp
nsIndexedDBProtocolHandler.h
nsIQuotaCallbacks.idl
nsIQuotaManagerService.idl
nsIQuotaRequests.idl
nsIQuotaResults.idl
NSSCipherStrategy.cpp
NSSCipherStrategy.h
OriginScope.h
PersistenceType.cpp
PersistenceType.h
PQuota.ipdl
PQuotaRequest.ipdl
PQuotaUsageRequest.ipdl
QMResult.cpp Bug 1709352 - Support error stacks only in EARLY_BETA_OR_EARLIER) || DEBUG builds; r=dom-storage-reviewers,jstutte 2021-05-25 09:06:11 +00:00
QMResult.h Bug 1713820 - Move QM_ERROR_STACKS_ENABLED definition to Config.h; r=dom-storage-reviewers,jstutte 2021-06-08 16:27:29 +00:00
QMResultInlines.h Bug 1709352 - Fix compilation when QM_ERROR_STACKS_ENABLED is not defined; r=dom-storage-reviewers,asuth 2021-05-27 16:33:32 +00:00
QuotaCommon.cpp Bug 1718190 - QM: Move ScopedLogExtraInfo into own h/cpp files; r=dom-storage-reviewers,jstutte 2021-06-25 10:21:27 +00:00
QuotaCommon.h Bug 1718190 - QM: Move ScopedLogExtraInfo into own h/cpp files; r=dom-storage-reviewers,jstutte 2021-06-25 10:21:27 +00:00
QuotaManager.h Bug 1716568 - Add support for origin based first initialization attempts handling to InitializationInfo; r=dom-storage-reviewers,asuth 2021-06-23 21:26:10 +00:00
QuotaManagerService.cpp
QuotaManagerService.h
QuotaObject.h
QuotaRequests.cpp
QuotaRequests.h
QuotaResults.cpp
QuotaResults.h
ScopedLogExtraInfo.cpp Bug 1718190 - QM: Move ScopedLogExtraInfo into own h/cpp files; r=dom-storage-reviewers,jstutte 2021-06-25 10:21:27 +00:00
ScopedLogExtraInfo.h Bug 1718190 - QM: Move ScopedLogExtraInfo into own h/cpp files; r=dom-storage-reviewers,jstutte 2021-06-25 10:21:27 +00:00
SerializationHelpers.h
StorageManager.cpp
StorageManager.h
UsageInfo.h