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 all 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
20 changes: 16 additions & 4 deletions storage.bs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ anticipated that some APIs will be applicable to both <a>storage types</a> going

<h3 id=storage-keys>Storage keys</h3>

<p>A <dfn>storage key</dfn> is an <a for=/>origin</a>. [[!HTML]]
<p>A <dfn>storage key</dfn> is a <a>tuple</a> consisting of an <dfn for="storage key">origin</dfn>
(an <a for=/>origin</a>). [[!HTML]]

<p class=XXX>This is expected to change; see
<a href="https://privacycg.github.io/storage-partitioning/">Client-Side Storage Partitioning</a>.
Expand All @@ -207,16 +208,27 @@ 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
<a for="environment settings object">origin</a>.
<li><p>Let <var>key</var> be the result of running
<a>obtain a storage key for non-storage purposes</a> with <var>environment</var>.

<li><p>If <var>key</var> is an <a>opaque origin</a>, then return failure.
<li><p>If <var>key</var>'s <a for="storage key">origin</a> is an <a>opaque origin</a>, then return
failure.

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

<li><p>Return <var>key</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 a <a>tuple</a> consisting of <var>environment</var>'s
<a for="environment settings object">origin</a>.

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


<h3 id=storage-sheds>Storage sheds</h3>

Expand Down