Skip to content

Commit

Permalink
Specify which event loop to use for posting messages
Browse files Browse the repository at this point in the history
Closes #4653.
  • Loading branch information
domenic authored Sep 28, 2019
1 parent a59059b commit 562631f
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -98436,13 +98436,6 @@ dictionary <dfn>CloseEventInit</dfn> : <span>EventInit</span> {
<p class="note">This API <a href="#fingerprint-postMessage">has some privacy implications</a> that
might not be immediately obvious.</p>

<div w-nodev>

<p>The <span>task source</span> for the <span data-x="concept-task">tasks</span> in
<span>cross-document messaging</span> is the <dfn>posted message task source</dfn>.</p>

</div>


<h4>Introduction</h4>

Expand Down Expand Up @@ -98634,7 +98627,8 @@ function receiver(e) {
any exceptions.</p></li>

<li>
<p><span>Queue a task</span> on the <span>posted message task source</span> to run the
<p><span>Queue a task</span> on the <dfn>posted message task source</dfn> of
<var>targetWindow</var>'s <span>relevant agent</span>'s <span>event loop</span> to run the
following steps:</p>

<ol>
Expand Down Expand Up @@ -99480,7 +99474,12 @@ interface <dfn>BroadcastChannel</dfn> : <span>EventTarget</span> {

<li>
<p>For each <code>BroadcastChannel</code> object <var>destination</var> in
<var>destinations</var>, <span>queue a task</span> that runs the following steps:</p>
<var>destinations</var>, <span>queue a task</span> on the <span>DOM manipulation task
source</span> of <var>destination</var>'s <span>relevant agent</span>'s <span>event loop</span>
that runs the following steps. If that event loop is a <span>window event loop</span>, then the
<span data-x="concept-task">task</span>'s <span data-x="concept-task-document">document</span>
must be set to <var>destination</var>'s <span><code>BroadcastChannel</code> settings
object</span>'s <span>responsible document</span>.</p>

<ol>
<li><p>Let <var>targetRealm</var> be <var>destination</var>'s <span
Expand All @@ -99506,13 +99505,6 @@ interface <dfn>BroadcastChannel</dfn> : <span>EventTarget</span> {
<var>sourceSettings</var>'s <span
data-x="concept-settings-object-origin">origin</span>.</p></li>
</ol>

<p>The <span data-x="concept-task">tasks</span> must use the <span>DOM manipulation task
source</span>, and, for those where the <span>event loop</span> specified by the target
<code>BroadcastChannel</code> object's <span><code>BroadcastChannel</code> settings
object</span> is a <span>window event loop</span>, must be associated with the <span>responsible
document</span> specified by that target <code>BroadcastChannel</code> object's
<span><code>BroadcastChannel</code> settings object</span>.</p>
</li>
</ol>

Expand Down

0 comments on commit 562631f

Please sign in to comment.