You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec.bs
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -323,7 +323,7 @@ When {{Worklet/addModule()}} is called for a worklet, it will run [=check if add
323
323
- For running operations on a worklet (from a {{Window}}), |environment| is the [=environment settings object=] associated with the {{Window}} that created the worklet, and |origin| is the worklet's [=global scopes=][0]'s [=global object/realm=]'s [=realm/settings object=]'s [=environment settings object/origin=].
324
324
- For [[#setter]], |environment| is either the current context (when called from a {{Window}}) or the [=environment settings object=] associated with the {{Window}} that created the worklet (when called from a {{SharedStorageWorkletGlobalScope}}), and |origin| is |environment|'s [=environment settings object/origin=].
325
325
- For {{SharedStorage/get()}} invoked from a {{Window}} (which can only succeed in a [=fenced frame=]), |environment| is the current context, and |origin| is |environment|'s [=environment settings object/origin=].
326
-
- For [[#ss-fetch-algo]], |environment| is the request's [=request/window=], and |origin| is the request's [=request/current URL=]'s [=url/origin=].
326
+
- For [[#ss-fetch-algo]], |environment| is the request's [=request/client=], and |origin| is the request's [=request/current URL=]'s [=url/origin=].
327
327
- For [[#ss-fetch-algo]], for {{SharedStorage/createWorklet()}} called with a cross-origin worklet script using the <var ignore=''>dataOrigin</var> option with value `"script-origin"` (which would result in a worklet where [=SharedStorageWorklet/has cross-origin data origin=] is true), and for {{SharedStorageWorklet/selectURL()}} and {{SharedStorageWorklet/run()}} that operate on a worklet where [=SharedStorageWorklet/has cross-origin data origin=] is true, |allowedInOpaqueOriginContext| is true. For other methods, |allowedInOpaqueOriginContext| is false.
328
328
</div>
329
329
@@ -2233,8 +2233,8 @@ The IDL attribute {{HTMLSharedStorageWritableElementUtils/sharedStorageWritable}
2233
2233
<div algorithm>
2234
2234
To <dfn>determine whether a request can currently use shared storage</dfn>, given a [=/request=] |request|, perform the following steps:
2235
2235
2236
-
1. Let |window| to |request|'s [=request/window=].
2237
-
1. If |window| is not an [=environment settings object=] whose [=global object=] is a {{Window}}, return false.
2236
+
1. Let |window| to |request|'s [=request/client=].
2237
+
1. If |window| is not an [=environment settings object=] whose [=environment settings object/global object=] is a {{Window}}, return false.
2238
2238
1. Let |allowedInOpaqueOriginContext| be true.
2239
2239
1. If the result of running [=determine whether shared storage is allowed by context=] given |window|, |request|'s [=request/current URL=]'s [=url/origin=], and |allowedInOpaqueOriginContext| is false, return false.
2240
2240
1. If the result of running [=check if user preference setting allows access to shared storage=] given |window| and |request|'s [=request/current URL=]'s [=url/origin=] is false, return false.
@@ -2258,9 +2258,9 @@ The IDL attribute {{HTMLSharedStorageWritableElementUtils/sharedStorageWritable}
2258
2258
2259
2259
1. Let |sharedStorageWritable| the result of running [=get a structured field value=] algorithm given [:Sec-Shared-Storage-Writable:], "`item`", and |request|'s [=request/header list=] as input.
2260
2260
1. If |sharedStorageWritable| is null, or |sharedStorageWritable| is not a [=structured header/Boolean=], or the value of |sharedStorageWritable| is false, return.
2261
-
1. Let |window| to |request|'s [=request/window=].
2262
-
1. [=Assert=]: |window| is an [=environment settings object=] whose [=global object=] is a {{Window}}.
2263
-
1. Let |sharedStorage| be |window|'s [=global object=]'s {{Window/sharedStorage}}.
2261
+
1. Let |window| to |request|'s [=request/client=].
2262
+
1. [=Assert=]: |window| is an [=environment settings object=] whose [=environment settings object/global object=] is a {{Window}}.
2263
+
1. Let |sharedStorage| be |window|'s [=environment settings object/global object=]'s {{Window/sharedStorage}}.
2264
2264
1. If |sharedStorage| is null, then return.
2265
2265
1. Let |list| be |response|'s [=response/header list=].
2266
2266
1. Let |operationsToParse| be the result of running [=get a structured field value=] algorithm given [:Shared-Storage-Write:], "`list`", and |list| as input.
0 commit comments