mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-08 16:12:23 +02:00
Previously `BroadcastChannelRepository` held strong references to `BroadcastChannel` instances, which is removed only after `close()` on corresponding `BroadcastChannel` was called, which might never happen. This would have to be revisited once we will implement broadcast channels messaging across different WebContent processes, but for now using weak references in the repository saves us from leaking all unclosed `BroadcastChannel`s.
8.9 KiB
8.9 KiB