gecko-dev/dom/quota/test/common
Jan Varga 7d0fd78cda Bug 1722668 - Speed up temporary storage initialization by archiving unaccessed origin directories; r=jari
This patch introduces a new notion of unaccessed origins. An origin is
considered as unaccessed if its age is older than a threshold (controlled by a
new preference, currently set to 13 months). Unaccessed origins are collected
during quota info loading.
When quota info loading is finished we check if it took a long time (controlled
by a new preference, currently set to 21s) and eventually archive unaccessed
origins which should speed up temporary storage initialization in a new
session.
Archiving consits of creating a new directory (archive) under storage/archives/0
directory (the name is based on the current date) and moving unaccessed origin
directories to the archive.
Once the patch lands, we will be monitoring QM_QUOTA_INFO_LOAD_TIME_V0
telemetry (quota info load time) and eventually lower down the preference for
long quota info load time.
If there are no issues, the archiving will be replaced with a hard removal of
unaccessed origins and also of the archives which were created in the meantime.

Differential Revision: https://phabricator.services.mozilla.com/D123049
2021-09-04 21:54:53 +00:00
..
browser.js
content.js
file.js
global.js Bug 1722668 - Implement a workaround for the case when GetLastModifiedTime returns INT64_MIN; r=jari 2021-09-04 21:54:52 +00:00
mochitest.js
nestedtest.js
system.js Bug 1722668 - Speed up temporary storage initialization by archiving unaccessed origin directories; r=jari 2021-09-04 21:54:53 +00:00
test_simpledb.js
test_storage_manager_persist_allow.js
test_storage_manager_persist_deny.js
test_storage_manager_persisted.js
xpcshell.js