@@ -199,7 +199,7 @@ anticipated that some APIs will be applicable to both <a>storage types</a> going
199
199
<h3 id=storage-keys>Storage keys</h3>
200
200
201
201
<p> A <dfn>storage key</dfn> is a <a>tuple</a> consisting of an <dfn for="storage key">origin</dfn>
202
- (an <a for=/>origin</a> ). [[!HTML]]
202
+ (an <a for=/>origin</a> ) and a <dfn for="storage key">top-level site</dfn> (a <a for=/>site</a> ) . [[!HTML]]
203
203
204
204
<p class=XXX> This is expected to change; see
205
205
<a href="https://privacycg.github.io/storage-partitioning/">Client-Side Storage Partitioning</a> .
@@ -228,7 +228,15 @@ anticipated that some APIs will be applicable to both <a>storage types</a> going
228
228
<a>environment settings object</a> ; otherwise <var> environment</var> 's
229
229
<a for=environment>creation URL</a> 's <a for=url>origin</a> .
230
230
231
- <li><p> Return a <a>tuple</a> consisting of <var> origin</var> .
231
+ <li><p> Let <var> top-level origin</var> be <var> environment</var> 's
232
+ <a for=environment>top-level origin</a> .
233
+
234
+ <li><p> If <var> top-level origin</var> is null, then set it to <var> origin</var> .
235
+
236
+ <li><p> Let <var> top-level site</var> be the result of of running <a>obtain a site</a>
237
+ given <var> top-level origin</var> .
238
+
239
+ <li><p> Return a <a>tuple</a> consisting of <var> origin</var> and <var> top-level site</var> .
232
240
</ol>
233
241
234
242
<p> To determine whether a <a>storage key</a> <var> A</var>
@@ -239,6 +247,9 @@ steps:
239
247
<li><p> If <var> A</var> 's <a for="storage key">origin</a> is not <a>same origin</a> with
240
248
<var> B</var> 's <a for="storage key">origin</a> , then return false.
241
249
250
+ <li><p> If <var> A</var> 's <a for="storage key">top-level site</a> is not equal to
251
+ <var> B</var> 's <a for="storage key">top-level site</a> , then return false.
252
+
242
253
<li><p> Return true.
243
254
</ol>
244
255
0 commit comments