Skip to content

Commit afbf6bd

Browse files
wanderviewannevk
andauthored
Support obtaining a storage key from an environment
Fixes whatwg#137. Co-authored-by: Anne van Kesteren <[email protected]>
1 parent f51b713 commit afbf6bd

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Diff for: storage.bs

+8-6
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ anticipated that some APIs will be applicable to both <a>storage types</a> going
204204
<p class=XXX>This is expected to change; see
205205
<a href="https://privacycg.github.io/storage-partitioning/">Client-Side Storage Partitioning</a>.
206206

207-
<p>To <dfn export>obtain a storage key</dfn>, given an <a>environment settings object</a>
207+
<p>To <dfn export>obtain a storage key</dfn>, given an <a for=/>environment</a>
208208
<var>environment</var>, run these steps:
209209

210210
<ol>
@@ -219,14 +219,16 @@ anticipated that some APIs will be applicable to both <a>storage types</a> going
219219
<li><p>Return <var>key</var>.
220220
</ol>
221221

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

225225
<ol>
226-
<li><p>Let <var>key</var> be a <a>tuple</a> consisting of <var>environment</var>'s
227-
<a for="environment settings object">origin</a>.
226+
<li><p>Let <var>origin</var> be <var>environment</var>'s
227+
<a for="environment settings object">origin</a> if <var>environment</var> is an
228+
<a>environment settings object</a>; otherwise <var>environment</var>'s
229+
<a for=environment>creation URL</a>'s <a for=url>origin</a>.
228230

229-
<li><p>Return <var>key</var>.
231+
<li><p>Return a <a>tuple</a> consisting of <var>origin</var>.
230232
</ol>
231233

232234
<p>To determine whether a <a>storage key</a> <var>A</var>

0 commit comments

Comments
 (0)