Skip to content

Commit a5586f1

Browse files
Donovan Gloverdomenic
authored andcommitted
Editorial: move owner set manipulation into discarding a document
Fixes whatwg#2533.
1 parent ccf9e0b commit a5586f1

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

source

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78688,11 +78688,11 @@ callback <dfn>FrameRequestCallback</dfn> = void (<span>DOMHighResTimeStamp</span
7868878688
<li><p>Lose the strong reference from the <code>Document</code>'s <span
7868978689
data-x="concept-document-bc">browsing context</span> to the <code>Document</code>.</p></li>
7869078690

78691-
</ol>
78691+
<li><p><span data-x="list remove">Remove</span> the <code>Document</code> object from the
78692+
<span>owner set</span> of each <code>WorkerGlobalScope</code> object whose set <span
78693+
data-x="list contains">contains</span> that <code>Document</code> object.</p></li>
7869278694

78693-
<p class="note">Whenever a <code>Document</code> object is <span data-x="discard a
78694-
Document">discarded</span>, it is also removed from the <span>owner set</span> of each worker
78695-
whose set contains that <code>Document</code>.</p>
78695+
</ol>
7869678696

7869778697
<p>When <dfn data-export="">a <em>browsing context</em> is discarded</dfn>, the strong reference
7869878698
from the user agent itself to the <span>browsing context</span> must be severed, and all the
@@ -97070,11 +97070,6 @@ interface <dfn>SharedWorkerGlobalScope</dfn> : <span>WorkerGlobalScope</span> {
9707097070
<var>worker global scope</var>. This list includes the implicit <code>MessagePort</code> in the
9707197071
case of <span data-x="DedicatedWorkerGlobalScope">dedicated workers</span>.</p>
9707297072

97073-
<p>Whenever a <code>Document</code> object is <span data-x="discard a Document">discarded</span>,
97074-
it must be <span data-x="list remove">removed</span> from the <span>owner set</span> of each
97075-
<code>WorkerGlobalScope</code> object whose set <span data-x="list contains">contains</span> that
97076-
<code>Document</code> object.</p>
97077-
9707897073
<p id="list-of-relevant-document-objects-to-add">Given an <span>environment settings object</span>
9707997074
<var>o</var> when creating or obtaining a worker, the <dfn>relevant owner to add</dfn> depends on
9708097075
the type of <span data-x="concept-settings-object-global">global object</span> specified by

0 commit comments

Comments
 (0)