RESOLVED FIXED 206899
[Web Animations] `DeclarativeAnimation` for CSS Animation is not always destroyed when class that applies `animation-name` is removed
https://bugs.webkit.org/show_bug.cgi?id=206899
Summary [Web Animations] `DeclarativeAnimation` for CSS Animation is not always destr...
Devin Rousso
Reported 2020-01-28 11:54:35 PST
Created attachment 389045 [details] [HTML] Reduction Attached a reduction page. I encountered this when trying to debug 'LayoutTests/inspector/animation/lifecycle-css-animation.html', as the test would time out since Web Inspector would never get notified that the web animation had been destroyed, and only noticed it after adding logging inside WebCore. The issue doesn't always reproduce, but it happens fairly often.
Attachments
[HTML] Reduction (827 bytes, text/html)
2020-01-28 11:54 PST, Devin Rousso
no flags
Patch (1.85 KB, patch)
2020-01-29 05:08 PST, Antoine Quint
no flags
Radar WebKit Bug Importer
Comment 1 2020-01-28 11:54:52 PST
Antoine Quint
Comment 2 2020-01-29 05:08:52 PST
Devin Rousso
Comment 3 2020-01-29 10:10:15 PST
Comment on attachment 389123 [details] Patch r=me I realize I didn't provide an easily testable reduction, but is it possible to write a test for this? Would the `CSSAnimation` be retrievable from JavaScript somehow, so we could check that it no longer exists after this change?
Antoine Quint
Comment 4 2020-01-29 10:18:01 PST
Getting a hold from JS would prevent it from being deref'd. The other option is to make this change in the patch you're working on which introduces a test.
WebKit Commit Bot
Comment 5 2020-01-29 11:18:46 PST
The commit-queue encountered the following flaky tests while processing attachment 389123 [details]: editing/spelling/spellcheck-async-remove-frame.html bug 158401 (authors: morrita@google.com, rniwa@webkit.org, and tony@chromium.org) The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 6 2020-01-29 11:19:17 PST
The commit-queue encountered the following flaky tests while processing attachment 389123 [details]: editing/spelling/spellcheck-attribute.html bug 206178 (authors: g.czajkowski@samsung.com, mark.lam@apple.com, and rniwa@webkit.org) imported/w3c/web-platform-tests/IndexedDB/fire-error-event-exception.html bug 201481 (authors: shvaikalesh@gmail.com and youennf@gmail.com) The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 7 2020-01-29 11:35:27 PST
Comment on attachment 389123 [details] Patch Clearing flags on attachment: 389123 Committed r255371: <https://trac.webkit.org/changeset/255371>
WebKit Commit Bot
Comment 8 2020-01-29 11:35:28 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.