Open
Description
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