[webrtc-pc] [[IceRole]] initialized too late (#3088)

jan-ivar has just created a new issue for https://github.com/w3c/webrtc-pc:

== [[IceRole]] initialized too late ==
https://github.com/w3c/webrtc-pc/pull/2331 initializes [[[IceRole]]](https://w3c.github.io/webrtc-pc/#dfn-icerole) in SRD(answer), which is too late, and on the wrong _transport_ (RTCDtlsTransport has no such slot):

<img height="500" alt="Image" src="https://github.com/user-attachments/assets/16c5467d-c623-4a4d-88ed-3d0b66b8d4e3" />

This should be moved to where transports are first surfaced in SLD. There the note talking about offers will make sense.ยน

---
<sub>1. This is all handled in SLD. I've verified with https://jsfiddle.net/jib1/8axfk9ud/ that in the case of "remote offer" the transports aren't instantiated until SLD(answer).</sub> 



Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/3088 using your GitHub account


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

Received on Monday, 23 February 2026 20:45:15 UTC