Re: [webrtc-pc] Reject ICE servers with an authority component or / (#2998)

I have just verified (on the set of URLs in the test case) that we can use the URL parser to normalize the "TWUS-valid but not RFC-valid" URLs into RFC-valid URLs. 

We would need to complete the algorithm so that it doesn't just validate the urls, but replace them with the normalized values out of the parsing, by adding a final step to replace `url` with `url.scheme` + `hostAndPortURL.host` (+ `'?'url.query` if not null) . This would mean that e.g. `stun:Go.com` would be turned into `stun:go.com`, `stun:faß.ExAmPlE` into `stun:xn--fa-hia.example`). The advantage of doing so is that it would also mean the ICE Agent would get address information that would be much harder to get wrong (e.g. in terms of dealing with IDNA 2003 vs 2008).

-- 
GitHub Notification of comment by dontcallmedom
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/pull/2998#issuecomment-2331179191 using your GitHub account


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

Received on Thursday, 5 September 2024 10:33:00 UTC