diff --git a/worklets/Overview.bs b/worklets/Overview.bs index acaeaa81..f5629362 100644 --- a/worklets/Overview.bs +++ b/worklets/Overview.bs @@ -30,12 +30,9 @@ Editor: Ian Kilpatrick, ikilpatrick@chromium.org, w3cid 73001 spec:fetch; type:dfn; for:/; text:fetch spec:html; type:dfn; for:/; text:browsing context spec:html; type:interface; for:/; text:Document -spec:html; type:dfn; for:environment settings object; - text: global object - text: https state - text: referrer policy -spec:html; type:dfn; for:environment; text:id spec:webidl; type:dfn; for:interface; text:inherit +spec:url; type:dfn; text:url; for:url +spec:html; type:dfn; for:/; text:event loop
@@ -65,10 +62,6 @@ urlPrefix: http://www.ecma-international.org/ecma-262/6.0/#sec-; type: dfn;
     text: Invoke
     text: strict mode code
 
- Introduction {#intro} ===================== @@ -233,14 +226,12 @@ When a user agent is to create a WorkletGlobalScope, given |wo 3. Let |insideSettings| be the result of set up a worklet environment settings object given |realmExecutionContext|, and |outsideSettings|. - 4. Associate the |insideSettings| with |workletGlobalScope|. - - 5. Set |workletGlobalScope|'s owner document to |outsideSettings|'s responsible + 4. Set |workletGlobalScope|'s owner document to |outsideSettings|'s responsible document. - 6. Invoke the initialize a global object's CSP list algorithm given |workletGlobalScope|. + 5. Invoke the initialize a global object's CSP list algorithm given |workletGlobalScope|. - 7. For each |entry| in the given |moduleResponsesMap| (in insertion order), run the following + 6. For each |entry| in the given |moduleResponsesMap| (in insertion order), run the following substeps: 1. Let |moduleURLRecord| be |entry|'s key. @@ -264,61 +255,55 @@ When a user agent is to create a WorkletGlobalScope, given |wo
When a user agent is to set up a worklet environment settings object, given a |executionContext|, and |outsideSettings|, it must run the following steps: - 1. Let |inheritedResponsibleBrowsingContext| be |outsideSettings|'s responsible browsing - context. + 1. Let |origin| be a unique opaque origin. 2. Let |inheritedAPIBaseURL| be |outsideSettings|'s API base URL. - 3. Let |origin| be a unique opaque origin. + 3. Let |inheritedReferrerPolicy| be |outsideSettings|'s referrer policy. - 4. Let |inheritedHTTPSState| be |outsideSettings|'s HTTPS state. + 4. Let |inheritedEmbedderPolicy| be |outsideSettings|'s embedder policy. - 5. Let |inheritedReferrerPolicy| be |outsideSettings|'s referrer policy. + 5. Let |realm| be the value of |executionContext|'s Realm component. - 6. Let |realm| be the value of |executionContext|'s Realm component. + 6. Let |workletGlobalScope| be |realm|'s global object. - 7. Let |workletGlobalScope| be |realm|'s global object. - - 8. Let |settingsObject| be a new environment settings object whose algorithms are defined + 7. Let |settingsObject| be a new environment settings object whose algorithms are defined as follows: - : The realm execution context + : The realm execution context :: Return |executionContext|. - : The module map. + : The module map. :: Return |workletGlobalScope|'s module map. - : The responsible browsing context - :: Return |inheritedResponsibleBrowsingContext|. - - : The responsible document - :: Not applicable (the responsible event loop is not a window event loop). + : The responsible document + :: Not applicable. - : The API URL character encoding + : The API URL character encoding :: Return UTF-8. - : The API base URL + : The API base URL :: Return |inheritedAPIBaseURL|. : The origin :: Return |origin|. - : The top-level origin - :: Return |outsideSettings|'s top-level origin. - - : The HTTPS state - :: Return |inheritedHTTPSState|. - - : The referrer policy + : The referrer policy :: Return |inheritedReferrerPolicy|. - 9. Set |settingsObject|'s id to a new unique opaque string, |settingsObject|'s - creation URL to |inheritedAPIBaseURL|, |settingsObject|'s target browsing - context to null, and |settingsObject|'s active service worker to null. + : The embedder policy + :: Return |inheritedEmbedderPolicy|. + + 8. Set |settingsObject|'s id to a new unique opaque string, + creation URL to |inheritedAPIBaseURL|, + top-level creation URL to null, + top-level origin to |outsideSettings|'s top-level origin, + target browsing context to null, and + active service worker to null. - 10. Set |realm|'s \[[HostDefined]] field to |settingsObject|. + 9. Set |realm|'s \[[HostDefined]] field to |settingsObject|. - 11. Return |settingsObject|. + 10. Return |settingsObject|.
Issue: Merge this with https://html.spec.whatwg.org/multipage/workers.html#set-up-a-worker-environment-settings-object