[whatwg/storage] Add 'obtain a storage key for non-storage purposes' (PR #132)

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.

- [x] At least two implementers are interested (and none opposed):
   * Chrome
   * Firefox
- [x] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * Not required
- [x] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chrome: Not required
   * Firefox: Not required
   * Safari: Not required


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://whatpr.org/storage/132.html" title="Last updated on Feb 8, 2022, 3:41 PM UTC (4788983)">Preview</a> | <a href="https://whatpr.org/storage/132/fa1e944...4788983.html" title="Last updated on Feb 8, 2022, 3:41 PM UTC (4788983)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/storage/pull/132

-- Commit Summary --

  * Add 'obtain a storage key for non-storage purposes'

-- File Changes --

    M storage.bs (13)

-- Patch Links --

https://github.com/whatwg/storage/pull/132.patch
https://github.com/whatwg/storage/pull/132.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/storage/pull/132
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/storage/pull/132@github.com>

Received on Tuesday, 8 February 2022 15:41:29 UTC