Bug 290836

Summary: [web-animations] `finish` animation event listener is not fired if registered in the `finished` promise
Product: WebKit Reporter: Antoine Quint <graouts>
Component: AnimationsAssignee: Antoine Quint <graouts>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: graouts
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/51750
Bug Depends on:    
Bug Blocks: 290772    

Antoine Quint
Reported 2025-04-01 02:20:25 PDT
If a `finish` event listener is added as the `finished` promise is resolved, it does not get fired. However, that should be the case since in the "update animations and send events" procedure (https://drafts.csswg.org/web-animations-1/#update-animations-and-send-events) events are dispatched after a microtask checkpoint is performed.
Attachments
Antoine Quint
Comment 1 2025-04-01 02:21:26 PDT
This is a subtask of bug 290772.
Antoine Quint
Comment 2 2025-04-01 02:31:05 PDT
Antoine Quint
Comment 3 2025-04-01 02:31:28 PDT
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/51750
Antoine Quint
Comment 4 2025-04-03 22:34:37 PDT
In the end we don't need this subtask, we can fix bug 290772 right away. *** This bug has been marked as a duplicate of bug 290772 ***
Note You need to log in before you can comment on or make changes to this bug.