Skip to content

Commit 1c41889

Browse files
committed
[worklets] Add initialization of CSP list.
1 parent 8b5cd48 commit 1c41889

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

worklets/Overview.bs

+16-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Editor: Ian Kilpatrick, ikilpatrick@chromium.org
2929
<pre class=link-defaults>
3030
spec:fetch; type:dfn; for:/; text:fetch
3131
spec:html; type:dfn; for:/; text:browsing context
32+
spec:html; type:interface; for:/; text:Document
3233
spec:html; type:dfn; for:environment settings object;
3334
text: global object
3435
text: https state
@@ -49,6 +50,9 @@ urlPrefix: https://html.spec.whatwg.org/multipage/webappapis.html; type: dfn;
4950
text: event loop processing model
5051
text: microtask queue
5152
text: task queues
53+
text: discarded; url: a-browsing-context-is-discarded
54+
urlPrefix: https://w3c.github.io/webappsec-csp/#; type: dfn;
55+
text: initialize a global object's CSP list; url: initialize-global-object-csp
5256
urlPrefix: http://www.ecma-international.org/ecma-262/6.0/#sec-; type: dfn;
5357
text: Construct
5458
text: InitializeHostDefinedRealm
@@ -134,6 +138,12 @@ interface WorkletGlobalScope {
134138
};
135139
</pre>
136140

141+
Each {{WorkletGlobalScope}} has an assocated <dfn for=WorkletGlobalScope>owner document</dfn>. It is
142+
initially null and set inside the <a>create a WorkletGlobalScope</a> algorithm.
143+
144+
Whenever a {{Document}} object is <a>discarded</a>, each {{WorkletGlobalScope}} whose <a>owner
145+
document</a> is that {{Document}} object should clear its <a>owner document</a>.
146+
137147
Each {{WorkletGlobalScope}} has an associated <a>environment settings object</a>.
138148

139149
Each {{WorkletGlobalScope}} has an associated <dfn for=WorkletGlobalScope>module map</dfn>. It is a
@@ -194,7 +204,12 @@ When a user agent is to <dfn>create a WorkletGlobalScope</dfn>, given |workletGl
194204

195205
4. Associate the |insideSettings| with |workletGlobalScope|.
196206

197-
5. For each |entry| in the given |moduleResponsesMap| (in insertion order), run the following
207+
5. Set |workletGlobalScope|'s <a>owner document</a> to |outsideSettings|'s <a>responsible
208+
document</a>.
209+
210+
6. Invoke the <a>initialize a global object's CSP list</a> algorithm given |workletGlobalScope|.
211+
212+
7. For each |entry| in the given |moduleResponsesMap| (in insertion order), run the following
198213
substeps:
199214

200215
1. Let |moduleURLRecord| be |entry|'s key.

0 commit comments

Comments
 (0)