diff --git a/amendments.json b/amendments.json index a9e2017a1..0c3dff3ca 100644 --- a/amendments.json +++ b/amendments.json @@ -55,8 +55,14 @@ }, { "description": "Use the url spec to parse ice server urls", - "pr": 2853, + "pr": [2853, 2998], "type": "correction", + "tests": [ + "webrtc/RTCConfiguration-iceServers.html" + ], + "testUpdates": [ + "web-platform-tests/wpt#47959" + ], "status": "candidate", "id": 33 } diff --git a/webrtc.html b/webrtc.html index 97982864d..31d9c54cc 100644 --- a/webrtc.html +++ b/webrtc.html @@ -3058,7 +3058,7 @@

  1. Let parsedURL be the result of - parsing + [=basic url parser|parsing=] url.

  2. @@ -3069,9 +3069,10 @@

  3. parsedURL's [=url/scheme=] is neither `"stun"`, `"stuns"`, `"turn"`, nor `"turns"`
  4. parsedURL does not have an [=url/opaque path=]
  5. -
  6. parsedURL's' [=url/fragment=] is non-null
  7. -
  8. parsedURL's' [=url/scheme=] is `"stun"` or `"stuns"`, - and parsedURL's' [=url/query=] is non-null
  9. +
  10. parsedURL's [=url/opaque path=] contains one or more `"/"` or `"@"`
  11. +
  12. parsedURL's [=url/fragment=] is non-null
  13. +
  14. parsedURL's [=url/scheme=] is `"stun"` or `"stuns"`, + and parsedURL's [=url/query=] is non-null
  15. @@ -3080,12 +3081,13 @@

  16. Let hostAndPortURL be result of - parsing the concatenation of + [=basic url parser|parsing=] the concatenation of `"https://"` and parsedURL's [=url/path=].

  17. If hostAndPortURL is failure, then [=exception/throw=] a "{{SyntaxError}}" {{DOMException}}.

    +

    If hostAndPortURL's [=url/path=], [=url/username=], or [=url/password=] is non-null, then [=exception/throw=] a "{{SyntaxError}}" {{DOMException}}.

    For "stun" and "stuns" schemes, this validates [[!RFC7064]] section 3.1.
    For "turn" and "turns" schemes, this and the steps below validate