Skip to content

Is beforeunload fired in all cases? #8395

Open
@domenic

Description

@domenic

Based on some initial tests in web-platform-tests/wpt#36488, in Chrome and Safari navigating or traversing to a javascript: URL does not fire beforeunload. Whereas in Firefox it does fire.

In the current spec all navigations and traversals fire beforeunload, whereas in the current state of the rewrite (#6315) only those which require a fetch will do so. So the following are the tricky cases:

  • javascript: URLs
  • srcdoc resources
  • embed/object
  • non-fetch scheme documents

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