From 562631f87622f32339472e8a43a75ab74c15a126 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Sat, 28 Sep 2019 11:11:37 +0900 Subject: [PATCH] Specify which event loop to use for posting messages Closes #4653. --- source | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/source b/source index 99fa07f856b..5699ab6fbee 100644 --- a/source +++ b/source @@ -98436,13 +98436,6 @@ dictionary CloseEventInit : EventInit {

This API has some privacy implications that might not be immediately obvious.

-
- -

The task source for the tasks in - cross-document messaging is the posted message task source.

- -
-

Introduction

@@ -98634,7 +98627,8 @@ function receiver(e) { any exceptions.

  • -

    Queue a task on the posted message task source to run the +

    Queue a task on the posted message task source of + targetWindow's relevant agent's event loop to run the following steps:

      @@ -99480,7 +99474,12 @@ interface BroadcastChannel : EventTarget {
    1. For each BroadcastChannel object destination in - destinations, queue a task that runs the following steps:

      + destinations, queue a task on the DOM manipulation task + source of destination's relevant agent's event loop + that runs the following steps. If that event loop is a window event loop, then the + task's document + must be set to destination's BroadcastChannel settings + object's responsible document.

      1. Let targetRealm be destination's BroadcastChannel : EventTarget { sourceSettings's origin.

      - -

      The tasks must use the DOM manipulation task - source, and, for those where the event loop specified by the target - BroadcastChannel object's BroadcastChannel settings - object is a window event loop, must be associated with the responsible - document specified by that target BroadcastChannel object's - BroadcastChannel settings object.