diff --git a/worklets/Overview.bs b/worklets/Overview.bs index 06c4d17b..5811d55e 100644 --- a/worklets/Overview.bs +++ b/worklets/Overview.bs @@ -29,6 +29,7 @@ Editor: Ian Kilpatrick, ikilpatrick@chromium.org
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 @@ -49,6 +50,9 @@ urlPrefix: https://html.spec.whatwg.org/multipage/webappapis.html; type: dfn; text: event loop processing model text: microtask queue text: task queues + text: discarded; url: a-browsing-context-is-discarded +urlPrefix: https://w3c.github.io/webappsec-csp/#; type: dfn; + text: initialize a global object's CSP list; url: initialize-global-object-csp urlPrefix: http://www.ecma-international.org/ecma-262/6.0/#sec-; type: dfn; text: Construct text: InitializeHostDefinedRealm @@ -134,6 +138,12 @@ interface WorkletGlobalScope { };+Each {{WorkletGlobalScope}} has an assocated owner document. It is +initially null and set inside the create a WorkletGlobalScope algorithm. + +Whenever a {{Document}} object is discarded, each {{WorkletGlobalScope}} whose owner +document is that {{Document}} object, should clear its owner document. + Each {{WorkletGlobalScope}} has an associated environment settings object. Each {{WorkletGlobalScope}} has an associated module map. It is a @@ -194,7 +204,12 @@ When a user agent is to create a WorkletGlobalScope, given |workletGl 4. Associate the |insideSettings| with |workletGlobalScope|. - 5. For each |entry| in the given |moduleResponsesMap| (in insertion order), run the following + 5. Set |workletGlobalScope|'s owner document to |outsideSettings|'s responsible + document. + + 6. 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 substeps: 1. Let |moduleURLRecord| be |entry|'s key.