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 +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.