Drop PendingActivity data member from BaseAudioContext and instead have AudioContext / OfflineAudioContext override virtualHasPendingActivity() to keep their JS wrapper alive. I find that PendingActivity data members are too error prone and a frequent cause of leaks.
Created attachment 430163 [details] Patch
Created attachment 430164 [details] Patch
Committed r278288 (238325@main): <https://commits.webkit.org/238325@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 430164 [details].
<rdar://problem/78695343>