Skip to content

Safari aborts previous startViewTransition call #62491

@arturovt

Description

@arturovt

Which @angular/* package(s) are the source of the bug?

router

Is this a regression?

No

Description

We're facing errors reported to Rollbar: AbortError Old view transition aborted by new view transition..

This is because calling document.startViewTransition() twice synchronously:

  • Chrome: continues applying the first call's transition
  • Safari: aborts the first call's transition and throws
// WebKit

if (RefPtr activeViewTransition =  document.activeViewTransition())
  activeViewTransition->skipViewTransition(Exception { ExceptionCode::AbortError, "Old view transition aborted by new view transition."_s });

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions