From 1c418896a8ffe217169362628568dbeecf03ae6d Mon Sep 17 00:00:00 2001 From: Ian Kilpatrick Date: Wed, 30 Aug 2017 13:18:43 -0700 Subject: [PATCH 1/2] [worklets] Add initialization of CSP list. --- worklets/Overview.bs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/worklets/Overview.bs b/worklets/Overview.bs index 06c4d17b..28ec2502 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. From dff6c833beb73664d5ceee443cdddfe25a7e5f68 Mon Sep 17 00:00:00 2001 From: Ian Kilpatrick Date: Fri, 1 Sep 2017 09:49:45 -0700 Subject: [PATCH 2/2] Update Overview.bs --- worklets/Overview.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worklets/Overview.bs b/worklets/Overview.bs index 28ec2502..5811d55e 100644 --- a/worklets/Overview.bs +++ b/worklets/Overview.bs @@ -142,7 +142,7 @@ Each {{WorkletGlobalScope}} has an assocated owner d 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. +document is that {{Document}} object, should clear its owner document. Each {{WorkletGlobalScope}} has an associated environment settings object.