Support obtaining a storage key from an environment · whatwg/storage@afbf6bd
wanderview
·
2022-03-04
·
via Recent Commits to storage:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -204,7 +204,7 @@ anticipated that some APIs will be applicable to both <a>storage types</a> going
|
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>. |
206 | 206 | |
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> |
208 | 208 | <var>environment</var>, run these steps: |
209 | 209 | |
210 | 210 | <ol> |
@@ -219,14 +219,16 @@ anticipated that some APIs will be applicable to both <a>storage types</a> going
|
219 | 219 | <li><p>Return <var>key</var>. |
220 | 220 | </ol> |
221 | 221 | |
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: |
224 | 224 | |
225 | 225 | <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>. |
228 | 230 | |
229 | | -<li><p>Return <var>key</var>. |
| 231 | +<li><p>Return a <a>tuple</a> consisting of <var>origin</var>. |
230 | 232 | </ol> |
231 | 233 | |
232 | 234 | <p>To determine whether a <a>storage key</a> <var>A</var> |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。