- From: hsingh-moz <notifications@github.com>
- Date: Fri, 27 Nov 2026 09:22:44 -0800
- To: whatwg/storage <storage@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/storage/issues/199@github.com>
hsingh-moz created an issue (whatwg/storage#199)
### What is the issue with the Storage Standard?
The standard defines some things on a [storage bucket](https://storage.spec.whatwg.org/#buckets) and others on a [storage shelf](https://storage.spec.whatwg.org/#storage-shelves), but the prose and the API use bucket, shelf, origin and "storage" as if they were the same thing. That only works while a shelf has exactly one bucket and gets confusing when factoring in multiple buckets per shelf.
Some instances:
* **Persistence.** The standard defines the [mode](https://storage.spec.whatwg.org/#bucket-mode) as belonging to a bucket ("A local storage bucket has a mode"), but the "persistent-storage" permission is per origin, and `navigator.storage.persist()` takes no bucket. The introduction calls it "A way of making that bucket persistent", while the [persistence](https://storage.spec.whatwg.org/#persistence) note talks about "storage marked as persistent".
* **Usage and quota.** Both are defined on the shelf, and `estimate()` is described as "for an origin". A bucket has neither. The note under storage quota encourages user agents to consider the "persistent-storage" permission "when determining quotas", which reads as raising the shelf's quota because of something that is otherwise recorded on a bucket.
* **Clearing.** [Management](https://storage.spec.whatwg.org/#management) clears "a storage bucket", while the user interface guidelines clear "storage for individual websites".
It would help if the standard stated, for persistence, usage, quota and clearing, which level each belongs to, and what an operation at one level means for the other: for example, whether making an origin's storage persistent applies to every bucket in its shelf.
This matters for [Storage Buckets](https://wicg.github.io/storage-buckets/), which adds buckets to the same shelf and defines its own per-bucket `persist()` and `estimate()`.
Related: #2, #101, #102
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/storage/issues/199
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/storage/issues/199@github.com>
Received on Friday, 27 November 2026 17:22:48 UTC