Web storage in extensions: quota, eviction and unlimitedStorage #388
Labels
follow-up: safari
Needs a response from a Safari representative
topic: storage
Issues related to persisting data. Topics include browser.storage, web storage, and new APIs.
Peter Coles asked a question1 in Chrome extension forum. I rearrange it and post it here.
Here I use "Web Storage" to represent all standards web storages, including Local Storage, Cache Storage, IndexedDB, OPFS, etc.
Quota and Eviction
Web Storage has the limitation of quotas and eviction and related API like
StorageManager.persist()
andStorageManager.estimate()
.Should Web Storage in extensions be protected? Ideally, it should be treated as unlimited and not be evicted by default, i.e.
navigator.storage.persisted()
returntrue
, like PWA installed Web apps."unlimitedStorage" permission
Another orthogonal issue is "unlimitedStorage" extension permission.
Footnotes
Web storage eviction question by Peter Coles ↩
Chromium issue 680392. ↩
Chromium issue 1209236. ↩
MDN storage.local ↩
Safari unlimitedStorage ↩
The text was updated successfully, but these errors were encountered: