[csswg-drafts] Pull Request: [css-view-transitions-1] Fix some promise timing, and avoid duplicate unhandled rejections

jakearchibald has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== [css-view-transitions-1] Fix some promise timing, and avoid duplicate unhandled rejections ==
In the current spec, this will cause three unhandled rejections:

```js
const transition = document.startViewTransition(() => {
  doesNotExist();
});
```

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

This PR _always_ marks `transition.finished` as handled, as it only ever rejects for the same reason as  `transition.updateCallbackDone`. It marks `transition.ready` as handled if it's rejected with the same reason as `transition.updateCallbackDone`.

See https://github.com/w3c/csswg-drafts/pull/8454


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 15 February 2023 09:57:49 UTC