Skip to content

EventSource should use 'remote event task source' #21112

Closed

Description

@gterzian

Currently, the networking task source is used to queue tasks scheduled by the EventSource object. See for example

let _ = global.networking_task_source().queue(

The spec says that we should use the remote event task source

The current situation can create problem in the context of aborting a document

The problem is that when we 'abort a document', we'll also discard all networking tasks.
If there is an ongoing fetch related to an EventSource, we need to cancel it, and then fail the connection, which is done via a task.
If we use the networking task source for this task, it will probably be discarded as part of 'abort a document', hence highligting the need to use the 'remote event task source'.

See whatwg/html#3789

I might end up doing this as part of #19309

Activity

  1. added
    A-content/dom
    on Jul 3, 2018
  2. added 3 commits that reference this issue on Jul 13, 2018
    fb6eea3
    9304578
    8eb2a53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/dom

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions