Skip to content

Commit

Permalink
Add steps to destroy the ineligible document from broadcast channel
Browse files Browse the repository at this point in the history
  • Loading branch information
lozy219 committed Mar 2, 2023
1 parent b8e2674 commit 202f9ae
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -108259,8 +108259,6 @@ interface <dfn interface>BroadcastChannel</dfn> : <span>EventTarget</span> {
match the following criteria:</p>

<ul>
<li><p>They are <span>eligible for messaging</span>.</p></li>

<li><p>The result of running <span>obtain a storage key for non-storage purposes</span> with
their <span>relevant settings object</span> <span data-x="storage key equal">equals</span>
<var>sourceStorageKey</var>.</p></li>
Expand All @@ -108270,6 +108268,18 @@ interface <dfn interface>BroadcastChannel</dfn> : <span>EventTarget</span> {
</ul>
</li>

<li>
<p>For each <var>destination</var> in <var>destinations</var>, if <var>destination</var> is
not <span>eligible for messaging</span>, perfrom the following steps:</p>

<ul>
<li><p>If <var>destination</var>'s <span>relevant global object</span> <var>o</var> is a
<code>Window</code>, <span data-x="destroy a document">destroy</span> <var>o</var>'s
<span data-x="concept-document-window">associated <code>Document</code></span>.</p></li>
<li><p>Remove <var>destination</var> from <var>destinations</var>.</p></li>
</ul>
</li>

<li><p>Remove <var>source</var> from <var>destinations</var>.</p></li>

<li><p>Sort <var>destinations</var> such that all <code>BroadcastChannel</code> objects whose
Expand Down

0 comments on commit 202f9ae

Please sign in to comment.