Re: [webrtc-pc] Steps for updating RTCPeerConnection.[[IceConnectionState]] are missing? (#2858)

> We have steps for [[ConnectionState]] and [[IceGatheringState]] (the latter with a queued task with closed check, the former without), but not [[IceConnectionState]]. What should the steps be here?

The spec has separate steps for each thing that may happen. These steps may fire the same event(s).

For instance:
1. _"Whenever the state of an [RTCDtlsTransport](https://w3c.github.io/webrtc-pc/#dom-rtcdtlstransport) changes"_, `connectionstatechange` is fired [here](https://w3c.github.io/webrtc-pc/#ref-for-event-connectionstatechange-1).
2. _"When the [ICE Agent](https://w3c.github.io/webrtc-pc/#dfn-ice-agent) indicates that an [RTCIceTransport](https://w3c.github.io/webrtc-pc/#dom-rtcicetransport) has changed either the selected candidate pair, the [RTCIceTransportState](https://w3c.github.io/webrtc-pc/#dom-rtcicetransportstate) or both"_, then `connectionstatechange` is fired [here](https://w3c.github.io/webrtc-pc/#ref-for-event-connectionstatechange-3).

I believe 2 is the one you're looking for.

> Also, this looks like a typo:

👀 Thanks! I'll add a PR.

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


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

Received on Thursday, 13 April 2023 21:43:06 UTC