Skip to content

Storage Keys are used directly, rather than a Storage Bottle Map #435

Open
@ADKaster

Description

@ADKaster

https://storage.spec.whatwg.org/#ref-for-obtain-a-local-storage-bottle-map states that standards that define a local or session storage type should invoke obtain a local storage bottle map or obtain a session storage bottle map.

We found this confusing in Ladybird, where we are implementing IndexedDB from scratch.

It appears that this issue is known in the w3c community, because it's referenced as Issue 5 in the storage-buckets API draft. https://wicg.github.io/storage-buckets/#issue-4f9abb58

IDBFactory methods need to take a storage bottle map rather than a storageKey.

In the next round of updates, references to obtain a storage key should likely be updated to obtain a local storage bottle map given environment and "indexedDB"

This is extra confusing because https://w3c.github.io/IndexedDB/#dom-idbtransactiondurability-default mentions that

The user agent should use its default durability behavior for the storage bucket. This is the default for transactions if not otherwise specified.

But "storage bucket" and other storage spec hierarchy objects (shelf, bottle, etc.) are not referenced anywhere else in the specification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions