Re: [webrtc-pc] Prevent GC of non-closed RTCDataChannels in workers (#3062)

Thinking of cribbing something from https://html.spec.whatwg.org/multipage/server-sent-events.html#garbage-collection:
- _"While there is a task queued by an [EventSource](https://html.spec.whatwg.org/multipage/server-sent-events.html#eventsource) object on the [remote event task source](https://html.spec.whatwg.org/multipage/server-sent-events.html#remote-event-task-source), there must be a strong reference from the [Window](https://html.spec.whatwg.org/multipage/nav-history-apis.html#window) or [WorkerGlobalScope](https://html.spec.whatwg.org/multipage/workers.html#workerglobalscope) object that the [EventSource](https://html.spec.whatwg.org/multipage/server-sent-events.html#eventsource) object's constructor was invoked from to that [EventSource](https://html.spec.whatwg.org/multipage/server-sent-events.html#eventsource) object."_


-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/3062#issuecomment-3050583656 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 8 July 2025 23:34:04 UTC