Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Feb 10, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions storage.bs
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,24 @@ anticipated that some APIs will be applicable to both <a>storage types</a> going
<var>environment</var>, run these steps:

<ol>
<li><p>Let <var>key</var> be <var>environment</var>'s
<li><p>Let <var>origin</var> be <var>environment</var>'s
<a for="environment settings object">origin</a>.

<li><p>If <var>key</var> is an <a>opaque origin</a>, then return failure.
<li><p>If <var>origin</var> is an <a>opaque origin</a>, then return failure.

<li><p>If the user has disabled storage, then return failure.

<li><p>Return the result of running <a>obtain a storage key for non-storage purposes</a> with
<var>environment</var>.
</ol>

<p>To <dfn export>obtain a storage key for non-storage purposes</dfn>, given an <a>environment
settings object</a> <var>environment</var>, run these steps:

<ol>
<li><p>Let <var>key</var> be <var>environment</var>'s
<a for="environment settings object">origin</a>.

<li><p>Return <var>key</var>.
</ol>

Expand Down