WPT details: Configure PC with bogus TURN server, trigger ICE gathering, and expect PeerConnection::icecandidateerror event to fire with all properties populated.
Adds the incecandidateerror event which provides detailed information about WebRTC ICE candidate gathering failures, including the ones defined by STUN (RFC5389) and TURN (RFC5766).
Diagnosing ICE connectivity issues without having access to detailed gathering failures can be a challenge. Support for ICE candidate errors is targeted towards better connectivity troubleshooting and network diagnostics.
Docs: https://www.w3.org/TR/webrtc/#dom-rtcpeerconnectioniceerrorevent