Skip to content

Commit

Permalink
BroadcastChannel: move destination close flag
Browse files Browse the repository at this point in the history
This way nothing happens if something got closed during delivery. (Implementations already did this.)

Tests: web-platform-tests/wpt#21895.

Fixes #1371. Possible follow-up: #5327.
  • Loading branch information
gterzian authored Mar 4, 2020
1 parent 81f16ad commit 760a144
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -100430,9 +100430,6 @@ interface <dfn>BroadcastChannel</dfn> : <span>EventTarget</span> {

<li><p>Their <span>channel name</span> is a <span>case-sensitive</span> match for
<var>sourceChannel</var>.</p></li>

<li><p>Their <span data-x="concept-BroadcastChannel-closed">closed flag</span> is
false.</p></li>
</ul>
</li>

Expand All @@ -100454,6 +100451,9 @@ interface <dfn>BroadcastChannel</dfn> : <span>EventTarget</span> {
object</span>'s <span>responsible document</span>.</p>

<ol>
<li><p>If <var>destination</var>'s <span data-x="concept-BroadcastChannel-closed">closed
flag</span> is true, then return.</p></li>

<li><p>Let <var>targetRealm</var> be <var>destination</var>'s <span
data-x="concept-relevant-realm">relevant Realm</span>.</p></li>

Expand Down

0 comments on commit 760a144

Please sign in to comment.