30
30
spec:fetch; type:dfn; for:/; text:fetch
31
31
spec:html; type:dfn; for:/; text:browsing context
32
32
spec:html; type:interface; for:/; text:Document
33
- spec:html; type:dfn; for:environment settings object;
34
- text: global object
35
- text: https state
36
- text: referrer policy
37
- spec:html; type:dfn; for:environment; text:id
38
33
spec:webidl; type:dfn; for:interface; text:inherit
34
+ spec:url; type:dfn; text:url; for:url
35
+ spec:html; type:dfn; for:/; text:event loop
39
36
</pre>
40
37
41
38
<pre class="anchors">
@@ -65,10 +62,6 @@ urlPrefix: http://www.ecma-international.org/ecma-262/6.0/#sec-; type: dfn;
65
62
text: Invoke
66
63
text: strict mode code
67
64
</pre>
68
- <pre class="link-defaults">
69
- spec:url; type:dfn; text:url; for:url
70
- spec:webidl; type:dfn; for:interface; text:inherit
71
- </pre>
72
65
73
66
Introduction {#intro}
74
67
=====================
@@ -233,14 +226,12 @@ When a user agent is to <dfn export>create a WorkletGlobalScope</dfn>, given |wo
233
226
3. Let |insideSettings| be the result of <a>set up a worklet environment settings object</a>
234
227
given |realmExecutionContext|, and |outsideSettings|.
235
228
236
- 4. Associate the |insideSettings| with |workletGlobalScope|.
237
-
238
- 5. Set |workletGlobalScope|'s <a>owner document</a> to |outsideSettings|' s <a>responsible
229
+ 4. Set |workletGlobalScope|'s <a>owner document</a> to |outsideSettings|' s <a>responsible
239
230
document</a> .
240
231
241
- 6 . Invoke the <a>initialize a global object's CSP list</a> algorithm given |workletGlobalScope|.
232
+ 5 . Invoke the <a>initialize a global object's CSP list</a> algorithm given |workletGlobalScope|.
242
233
243
- 7 . For each |entry| in the given |moduleResponsesMap| (in insertion order), run the following
234
+ 6 . For each |entry| in the given |moduleResponsesMap| (in insertion order), run the following
244
235
substeps:
245
236
246
237
1. Let |moduleURLRecord| be |entry|'s key.
@@ -264,61 +255,55 @@ When a user agent is to <dfn export>create a WorkletGlobalScope</dfn>, given |wo
264
255
<div algorithm>
265
256
When a user agent is to <dfn export>set up a worklet environment settings object</dfn> , given a
266
257
|executionContext|, and |outsideSettings|, it must run the following steps:
267
- 1. Let |inheritedResponsibleBrowsingContext| be |outsideSettings|'s <a>responsible browsing
268
- context</a> .
258
+ 1. Let |origin| be a unique <a>opaque origin</a> .
269
259
270
260
2. Let |inheritedAPIBaseURL| be |outsideSettings|'s <a>API base URL</a> .
271
261
272
- 3. Let |origin | be a unique <a>opaque origin </a> .
262
+ 3. Let |inheritedReferrerPolicy | be |outsideSettings|'s <a for="environment settings object">referrer policy </a> .
273
263
274
- 4. Let |inheritedHTTPSState | be |outsideSettings|'s <a>HTTPS state </a> .
264
+ 4. Let |inheritedEmbedderPolicy | be |outsideSettings|'s <a for="environment settings object">embedder policy </a> .
275
265
276
- 5. Let |inheritedReferrerPolicy | be |outsideSettings |'s <a>referrer policy</a> .
266
+ 5. Let |realm | be the value of |executionContext |'s Realm component .
277
267
278
- 6. Let |realm | be the value of |executionContext |'s Realm component .
268
+ 6. Let |workletGlobalScope | be |realm |'s <a for= Realm>global object</a> .
279
269
280
- 7. Let |workletGlobalScope| be |realm|'s <a>global object</a> .
281
-
282
- 8. Let |settingsObject| be a new <a>environment settings object</a> whose algorithms are defined
270
+ 7. Let |settingsObject| be a new <a>environment settings object</a> whose algorithms are defined
283
271
as follows:
284
272
285
- : The <a>realm execution context</a>
273
+ : The <a for="environment settings object" >realm execution context</a>
286
274
:: Return |executionContext|.
287
275
288
- : The <a>module map</a> .
276
+ : The <a for="environment settings object" >module map</a> .
289
277
:: Return |workletGlobalScope|'s <a for=WorkletGlobalScope>module map</a> .
290
278
291
- : The <a>responsible browsing context</a>
292
- :: Return |inheritedResponsibleBrowsingContext|.
293
-
294
- : The <a>responsible document</a>
295
- :: Not applicable (the <a>responsible event loop</a> is not a <a>window event loop</a> ).
279
+ : The <a for="environment settings object">responsible document</a>
280
+ :: Not applicable.
296
281
297
- : The <a>API URL character encoding</a>
282
+ : The <a for="environment settings object" >API URL character encoding</a>
298
283
:: Return <a>UTF-8</a> .
299
284
300
- : The <a>API base URL</a>
285
+ : The <a for="environment settings object" >API base URL</a>
301
286
:: Return |inheritedAPIBaseURL|.
302
287
303
288
: The <a for="environment settings object">origin</a>
304
289
:: Return |origin|.
305
290
306
- : The <a for="environment settings object">top-level origin</a>
307
- :: Return |outsideSettings|'s <a for="environment settings object">top-level origin</a> .
308
-
309
- : The <a>HTTPS state</a>
310
- :: Return |inheritedHTTPSState|.
311
-
312
- : The <a>referrer policy</a>
291
+ : The <a for="environment settings object">referrer policy</a>
313
292
:: Return |inheritedReferrerPolicy|.
314
293
315
- 9. Set |settingsObject|'s <a>id</a> to a new unique opaque string, |settingsObject|' s
316
- <a>creation URL</a> to |inheritedAPIBaseURL|, |settingsObject|'s <a>target browsing
317
- context</a> to null, and |settingsObject|'s <a>active service worker</a> to null.
294
+ : The <a for="environment settings object">embedder policy</a>
295
+ :: Return |inheritedEmbedderPolicy|.
296
+
297
+ 8. Set |settingsObject|'s <a for=environment>id</a> to a new unique opaque string,
298
+ <a for=environment>creation URL</a> to |inheritedAPIBaseURL|,
299
+ <a for=environment>top-level creation URL</a> to null,
300
+ <a for=environment>top-level origin</a> to |outsideSettings|'s <a for=environment>top-level origin</a> ,
301
+ <a for=environment>target browsing context</a> to null, and
302
+ <a for=environment>active service worker</a> to null.
318
303
319
- 10. Set |realm|'s \[[HostDefined]] field to |settingsObject|.
304
+ 9. Set |realm|'s \[[HostDefined]] field to |settingsObject|.
320
305
321
- 11 . Return |settingsObject|.
306
+ 10 . Return |settingsObject|.
322
307
</div>
323
308
324
309
Issue: Merge this with https://html.spec.whatwg.org/multipage/workers.html#set-up-a-worker-environment-settings-object
0 commit comments