whatwg / storage

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

Add 'obtain a storage key for non-storage purposes' #132

Closed recvfrom closed 2 years ago

recvfrom commented 2 years ago

Fixes #131

This commit adds a new algorithm for obtaining a storage key that is suitable for use in non-storage APIs (for instance, BroadcastChannel). Specifically, this algorithm works regardless of whether storage access has been granted and also allows a storage key to be obtained for opaque origins.

I don't think tests or implementation bugs are needed for this change since this PR maintains the existing functionality of "obtain a storage key" and doesn't use "obtain a storage key for non-storage purposes". If this is not the case let me know and I'm happy to write tests / open implementation bugs.


Preview | Diff