[Webkit-unassigned] [Bug 164508] WebRTC: URL class can't parse ICE helper server urls properly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Apr 2 08:28:13 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=164508

--- Comment #10 from Anne van Kesteren <annevk at annevk.nl> ---
That will do the wrong thing most likely for IPv4 and a variety of non-ASCII or percent-encoded host names.

I think what we want to do is something like this:

* Let inputURL be the result of URL parsing input.
* If inputURL is failure, then return failure.
* If inputURL's scheme is not "stun" or "turn", then return failure.
* If inputURL's path is not an opaque path, then return failure.
* If inputURL's query or fragment is non-null, then return failure.
* Let hostAndPortString be inputURL's path.
* Let hostAndPortURL be the result of URL parsing the concatenation of "https://" and hostAndPortURL.
* If hostAndPortURL is failure, then return failure.
* Return (hostAndPortURL's host, hostAndPortURL's port).

(The URL Standard should probably offer a primitive for the hostAndPort bit, that's not exactly pretty.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230402/94805d1b/attachment.htm>


More information about the webkit-unassigned mailing list