-
Notifications
You must be signed in to change notification settings - Fork 716
[web-animations-1] Should ready / finished rejections be marked as handled? #4556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This sounds reasonable to me. I was honestly surprised that the ready promise rejected when we in fact "handled" the requested actions. I think it would make sense to do the same here. |
Agreed. |
I worked on an initial patch for this for Firefox which should include WPT for this spec change: https://hg.mozilla.org/try/rev/54bc69142ded40d5a5e5b8fef909bfd3fe1dab3e#l6.2 |
WPT for this change: web-platform-tests/wpt#22314 |
For reference, this change's implementation is tracked as WebKit bug 209240. |
https://bugs.webkit.org/show_bug.cgi?id=209240 <rdar://problem/60592305> Patch by Antoine Quint <graouts@apple.com> on 2020-03-19 Reviewed by Youenn Fablet. LayoutTests/imported/w3c: Add the new WPT tests added for this spec change (web-platform-tests/wpt#22314) and revert some workarounds made in our copy of WPT tests to previously silence flaky console output related to promise rejections (added in r258275 and r258276). * web-platform-tests/web-animations/interfaces/Animation/finished-expected.txt: * web-platform-tests/web-animations/interfaces/Animation/finished.html: * web-platform-tests/web-animations/interfaces/Animation/ready-expected.txt: * web-platform-tests/web-animations/interfaces/Animation/ready.html: * web-platform-tests/web-animations/timing-model/animations/finishing-an-animation.html: * web-platform-tests/web-animations/timing-model/animations/pausing-an-animation.html: Source/WebCore: Implementing the spec change discussed in w3c/csswg-drafts#4556. * animation/WebAnimation.cpp: (WebCore::WebAnimation::cancel): (WebCore::WebAnimation::resetPendingTasks): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@258702 268f45cc-cd09-0410-ab3c-d52691b4dbfc
In web-platform-tests/wpt#18932 there was some discussion about unhandled rejections for the
.ready
promise and I wasn't sure what the correct behavior should be.This morning I discovered whatwg/streams#547 where for streams we decided to explicitly mark rejections for "state promises" like
.ready
as handled. I wonder if we should be doing the same for.ready
and.finished
for theAnimation
interface?The text was updated successfully, but these errors were encountered: