Skip to content

"abort" Event Isn't Fired When Aborting Document Load #3525

@anthumchris

Description

@anthumchris

Is firing an "abort" event still a valid HTML specification?

According to 7.8.12 Aborting a document load, "the user agent should...fire an event named abort at that Document's Window object". I've been testing with this abort event detection page and cannot capture the "abort" event anywhere from any browser.

Detecting the "abort" event in Service Workers would also be extremely useful, as we could effectively manage our Streams, FetchEvents, etc, and react accordingly. For example, this Service Worker Progress Indicator has no way to detect when the user signaled an abort/cancel on the page load. Firefox effectively cancels the download (without firing an "abort" event that SW can intercept, but Chrome does not)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions