Prevent early resolution of finished promise
Previously, a finished promise could be resolved if created while the finish notification task was pending. This fails in the cases where the play state is only momentarily in the finished state. For example: anim.currentTime = ANIMATION_DURATION; anim.finished.then(doSomething); anim.reverse(); anim.finished.then(doSomethingElse); In this case, doSomething should not be called. Bug: 1005861 Change-Id: I4a04c7fc75c2ae9ee719a0444a0d22ba49fb6ead Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1928049 Commit-Queue: Kevin Ellis <kevers@chromium.org> Reviewed-by:Majid Valipour <majidvp@chromium.org> Cr-Commit-Position: refs/heads/master@{#718208}
Showing
Please register or sign in to comment