Skip to content

Commit f703a2c

Browse files
committed
Allow implementations to kill worklets whenever, by default
Closes w3c/css-houdini-drafts#470.
1 parent 25c78e4 commit f703a2c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

source

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102389,17 +102389,18 @@ dictionary <dfn dictionary>WorkletOptions</dfn> {
102389102389
<code>Document</code> will <span data-x="terminate a worklet global scope">terminate</span> the
102390102390
corresponding <code>WorkletGlobalScope</code> and allow it to be garbage-collected.</p>
102391102391

102392-
<p>Additionally, specifications which inherit from <code>WorkletGlobalScope</code> and define
102393-
specific worklet types can give more specific details on when to <span data-x="create a worklet
102394-
global scope">create</span> or <span data-x="terminate a worklet global scope">terminate</span>
102395-
the <code>WorkletGlobalScope</code>s for a given worklet type. For example, they might create them
102396-
during specific processes that call upon worklet code, as in the <a
102397-
href="#worklets-example-registering">example</a>. Or they might terminate them if the
102392+
<p>Additionally, user agents may, at any time, <span data-x="terminate a worklet global
102393+
scope">terminate</span> a given <code>WorkletGlobalScope</code>, unless the specification defining
102394+
the corresponding worklet type says otherwise. For example, they might terminate them if the
102398102395
<span>worklet agent</span>'s <span data-x="concept-agent-event-loop">event loop</span> has no
102399102396
<span data-x="concept-task">tasks</span> queued, or if the user agent has no pending operations
102400102397
planning to make use of the worklet, or if the user agent detects abnormal operations such as
102401102398
infinite loops or callbacks exceeding imposed time limits.</p>
102402102399

102400+
<p>Finally, specifications for specific worklet types can give more specific details on when to
102401+
<span data-x="create a worklet global scope">create</span> <code>WorkletGlobalScope</code>s for a
102402+
given worklet type. For example, they might create them during specific processes that call upon
102403+
worklet code, as in the <a href="#worklets-example-registering">example</a>.</p>
102403102404

102404102405
<h2 split-filename="webstorage" id="webstorage">Web storage</h2>
102405102406

0 commit comments

Comments
 (0)