Skip to content

Missing navigationStarted events in some scenarios triggering navigationFailed #1137

Description

@juliandescottes

Based on the HTML spec, there are some situations where browsingContext.navigationFailed is emitted without emitting first browsingContext.navigationStarted (step 9 and 12 of https://html.spec.whatwg.org/#beginning-navigation, navigation started is step 18).

However for beforeunload scenarios, navigationFailed is emitted at step 24.1.2, so after navigationStarted was triggered.

Should we consistently emit navigationStarted in all cases, or are we fine with the current situation.

Came up in MDN documentation review mdn/content#44571

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions