Description
Replacing needs to happen at the level of storage units (or shelves) and potentially across the user agent's storage map and the browsing session's storage map.
This means that potentially many storage buckets end up being replaced. For now only the "default" storage buckets would be impacted, but in the future others would as well.
One question here is around the expectations of the "bucket API" and Clear-Site-Data or navigator.storage.clear()
. Would the non-"default" buckets be expected to be "gone" or only be emptied?
Another question is around the storage access API. With that you might get access to a different storage unit, but the buckets would potentially also mismatch. Perhaps that's a good reason to not allow third parties without storage access to create buckets?