Bug 293108

Summary: [scroll-animations] debug assertion hit under `JSCell::classInfo()` during document teardown when the last Document reference is dereferenced
Product: WebKit Reporter: Antoine Quint <graouts>
Component: AnimationsAssignee: Antoine Quint <graouts>
Status: RESOLVED FIXED    
Severity: Normal CC: graouts, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=294105

Antoine Quint
Reported 2025-05-16 01:22:13 PDT
In case the document is torn down due to its last reference being dereferenced, we can hit this debug assertion under `JSCell::classInfo()` because we try to resolve the ready promise of a scroll-driven animation: ASSERT(vm().heap.mutatorState() != MutatorState::Sweeping || !vm().currentThreadIsHoldingAPILock());
Attachments
Antoine Quint
Comment 1 2025-05-16 01:22:21 PDT
Antoine Quint
Comment 2 2025-05-16 01:54:01 PDT
EWS
Comment 3 2025-05-16 10:03:55 PDT
Committed 295009@main (cdbbd6521df5): <https://commits.webkit.org/295009@main> Reviewed commits have been landed. Closing PR #45484 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.