Skip to content

Aborting a document shoud only cancel tasks from the networking task source #21114

Closed

Description

@gterzian

Currently, when aborting a document, we cancel all tasks, see

self.window.cancel_all_tasks();

The spec says we shoud be "Cancel any instances of the fetch algorithm in the context of document, discarding any tasks queued for them", which I read as saying 'cancel all networking tasks, not all tasks". https://html.spec.whatwg.org/multipage/browsing-the-web.html#abort-a-document

This is also necessary to allow for failing the connection of an EventSource, which happens as part of document aborting. This 'failing the connection' happens via a task on the 'remote event task source', and it should still be processed after the document has been aborted, I think. See #21112

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
  3. added 8 commits that reference this issue on Jul 27, 2018
    6fac7a3
    17edfbd
    0c09ac2
    50c2234
    a8c8ade
    94120c2
    e543cba
    076198f
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