- From: hsingh-moz <notifications@github.com>
- Date: Fri, 27 Nov 2026 09:23:57 -0800
- To: whatwg/storage <storage@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/storage/issues/201@github.com>
hsingh-moz created an issue (whatwg/storage#201) ### What is the issue with the Storage Standard? [Management](https://storage.spec.whatwg.org/#management) says: > Whenever a storage bucket is cleared by the user agent, it must be cleared in its entirety. > > If removal of storage buckets leaves the encompassing storage shelf's bucket map empty, then remove that storage shelf and corresponding storage key from the encompassing storage shed. The two sentences read as if "cleared" and "removal" mean the same thing, which is also how the terms are commonly used. It would help if the standard said so explicitly. Taking them as the same, clearing an origin's storage (by the user, or through `Clear-Site-Data: "storage"`) removes its default bucket and with it the shelf. The persistence [mode](https://storage.spec.whatwg.org/#bucket-mode) belonged to that bucket, and the next one starts as "best-effort". So `persisted()` returns false afterwards, while the "persistent-storage" permission can still be "granted", and the origin has to call `persist()` again. The standard never states this consequence. The introduction's example handles `!persisted && permission.state == "granted"`, but no normative text says how an origin gets there, or whether losing the persisted state on clearing is intended. Suggestion: * State that clearing a storage bucket removes it. * State that an origin's storage is no longer persistent after it has been cleared, and that `persist()` needs to be called again. * State whether clearing affects the "persistent-storage" permission. Related: WICG/storage-buckets#34 -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/storage/issues/201 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/storage/issues/201@github.com>
Received on Friday, 27 November 2026 17:24:02 UTC