Currently callbacks in the bindings generate Strong<> references which act as GC roots. It's probably a better default to create Weak<> references in the default case and provide a IsStrongCallback extended IDL attribute for cases where Strong<> is necessary.
<rdar://problem/108859209>
After my experience with MediaSession this is pretty ambitious. There can be non-trivial logic involved in keeping callbacks alive.
Pull request: https://github.com/WebKit/WebKit/pull/30415
Committed 280611@main (39ee5e3e49f1): <https://commits.webkit.org/280611@main> Reviewed commits have been landed. Closing PR #30415 and removing active labels.