Skip to content

[css-view-transitions-1] Avoid duplicate unhandled rejections #8455

@jakearchibald

Description

@jakearchibald

In the current spec, this will cause three unhandled rejections:

const transition = document.startViewTransition(() => {
  throw Error('BOOM');
});

As it will cause transition.updateCallbackDone, transition.ready, and transition.finished to reject with the same error.

This doesn't seem great, as there's only really one error.

Instead, transition.ready and transition.finished should not trigger unhandled rejections if they're rejecting for the same reason as transition.updateCallbackDone.

@fantasai @tabatkins @astearns I think this is small and uncontroversial enough to be an async resolution.

PR: #8454

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