WICG / storage-buckets

API proposal for managing multiple storage buckets
https://wicg.github.io/storage-buckets/explainer
Other
44 stars 20 forks source link

Should default bucket be accessible, and how? #91

Open evanstade opened 1 year ago

evanstade commented 1 year ago

The storage spec currently uses "default" as the key in a shelf's bucket map for the implicit/default bucket. This leads to the question of whether navigator.storageBuckets.open('default') ought to open a handle to this bucket. (Or navigator.storage.openBucket, see #17 )

I suggest starting by making it explicitly impossible and revisit if there is a strong use case.

@asutherland @annevk

annevk commented 1 year ago

I agree with these things:

  1. The default bucket should not be accessible, definitely not in v1.
  2. "default" should not be a reserved string. This can be accomplished by prefixing other buckets or organizing things differently in the Storage Standard. No strong opinions there, whatever is most elegant I suppose.