whatwg / storage

Storage Standard
https://storage.spec.whatwg.org/
Other
126 stars 55 forks source link

Define a storage task source #155

Closed a-sully closed 1 year ago

a-sully commented 1 year ago

See https://github.com/whatwg/fs/issues/3

Writes using any storage API should be rejected if the site is out of quota. Therefore all writes from storage APIs which may affect or be affected by quota should run in order (at least per-site)

Fixes #89


Preview | Diff

annevk commented 1 year ago

Proposed commit message:

Introduce a storage task source and queue a storage task

Also make use of them internally. Additionally cross-reference more and adopt modern practices.

Helps with https://github.com/whatwg/fs/issues/3. Fixes #89.

annevk commented 1 year ago

@a-sully if this looks good to you and @domenic I'll merge it Monday. @domenic this is mainly a heads as you introduced "queue a global task".

a-sully commented 1 year ago

LGTM! Thanks for cleaning this up