From 66e3206bd172599db93dfd9a583bb66170516170 Mon Sep 17 00:00:00 2001
From: Dominique Hazael-Massieux
Date: Tue, 3 Sep 2024 15:35:02 +0200
Subject: [PATCH] Complete ice server url validation
close #2912
---
webrtc.html | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/webrtc.html b/webrtc.html
index 97982864d..95099a5c8 100644
--- a/webrtc.html
+++ b/webrtc.html
@@ -3093,9 +3093,13 @@
If parsedURL's [=url/query=] is non-null, run the following
- sub-steps:
+ sub-steps and if any of them fail, [=exception/throw=] a "{{SyntaxError}}" {{DOMException}} :
- TODO: validate ?transport=udp|tcp
+ - Let urlParams be the result of applying
application/x-www-form-urlencoded
string parser to parsedURL's [=url/query=].
+ - If urlParams’s [=list/size=] is greater than 1, then fail.
+ - If urlParams’s [=list/size=] is 1, let
(paramName, paramValue)
be the two items of urlParams/var>[0]
.
+ - If paramName is set and different from
"transport"
, then fail.
+ - If paramValue is set and different from
"udp"
or "tcp"
, then fail.