@@ -29,6 +29,7 @@ Editor: Ian Kilpatrick, ikilpatrick@chromium.org
29
29
<pre class=link-defaults>
30
30
spec:fetch; type:dfn; for:/; text:fetch
31
31
spec:html; type:dfn; for:/; text:browsing context
32
+ spec:html; type:interface; for:/; text:Document
32
33
spec:html; type:dfn; for:environment settings object;
33
34
text: global object
34
35
text: https state
@@ -49,6 +50,9 @@ urlPrefix: https://html.spec.whatwg.org/multipage/webappapis.html; type: dfn;
49
50
text: event loop processing model
50
51
text: microtask queue
51
52
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
52
56
urlPrefix: http://www.ecma-international.org/ecma-262/6.0/#sec-; type: dfn;
53
57
text: Construct
54
58
text: InitializeHostDefinedRealm
@@ -134,6 +138,12 @@ interface WorkletGlobalScope {
134
138
};
135
139
</pre>
136
140
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
+
137
147
Each {{WorkletGlobalScope}} has an associated <a>environment settings object</a> .
138
148
139
149
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
194
204
195
205
4. Associate the |insideSettings| with |workletGlobalScope|.
196
206
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
198
213
substeps:
199
214
200
215
1. Let |moduleURLRecord| be |entry|'s key.
0 commit comments