Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement quota management and StorageManager API #11525

Open
kitsonk opened this issue Jul 26, 2021 · 1 comment
Open

Implement quota management and StorageManager API #11525

kitsonk opened this issue Jul 26, 2021 · 1 comment
Labels
runtime Relates to code in the runtime crate suggestion suggestions for new features (yet to be agreed) web related to Web APIs

Comments

@kitsonk
Copy link
Contributor

kitsonk commented Jul 26, 2021

With local storage, blob storage, but also with the likes of IndexedDB and CacheStorage, and potentially the DENO_DIR, we need a more mature centralised location to do quota management for objects we persist to disk. All browsers implement some form of quota management.

How Mozilla/Firefox deals with it is discussed here: https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Browser_storage_limits_and_eviction_criteria

Chromium is discussed here: https://web.dev/storage-for-the-web/

Chromium and Firefox implement that StorageManager API.

The storage manager API though requires an origin, and that gets into the debate of the "origin-less" usage of Deno.

@kitsonk kitsonk added web related to Web APIs suggestion suggestions for new features (yet to be agreed) runtime Relates to code in the runtime crate labels Jul 26, 2021
@tom-sherman
Copy link

@kitsonk is it safe to say that the "origin debate" is now settled with things like CacheStorage using the rules described in the following link? #11882 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
runtime Relates to code in the runtime crate suggestion suggestions for new features (yet to be agreed) web related to Web APIs
Projects
None yet
Development

No branches or pull requests

2 participants