Changeset 208525 in webkit
- Timestamp:
- Nov 9, 2016 11:46:01 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r208518 r208525 1 2016-11-08 Philippe Normand <pnormand@igalia.com> 2 3 [WebRTC] white-list turns urls from the RTCConfiguration 4 https://bugs.webkit.org/show_bug.cgi?id=164506 5 6 Reviewed by Alejandro G. Castro. 7 8 * web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt: Rebaseline test, since turns servers are now parsed. 9 1 10 2016-11-09 Brady Eidson <beidson@apple.com> 2 11 -
trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt
r208057 r208525 15 15 PASS new RTCPeerConnection({ iceServers: [{ urls: ["stun:stun1.example.net"] }] }) 16 16 PASS new RTCPeerConnection({ iceServers: [{ urls: ["stun:stun1.example.net", "stun:stun2.example.net"] }] }) 17 FAIL new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org", username: "user", credential: "cred" }] }) Error creating RTCPeerConnection 17 PASS new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org", username: "user", credential: "cred" }] }) 18 18 PASS new RTCPeerConnection({ iceServers: [{ urls: "turn:turn.example.net", username: "user", credential: "cred" }] }) 19 FAIL new RTCPeerConnection({ iceServers: [{ urls: ["turns:turn.example.org", "turn:turn.example.net"], username: "user", credential: "cred" }] }) Error creating RTCPeerConnection 19 PASS new RTCPeerConnection({ iceServers: [{ urls: ["turns:turn.example.org", "turn:turn.example.net"], username: "user", credential: "cred" }] }) 20 20 PASS new RTCPeerConnection({ iceServers: [{ urls: "stun:stun1.example.net", credentialType: "password" }] }) 21 21 PASS new RTCPeerConnection({ iceServers: [{ urls: "stun:stun1.example.net", credentialType: "token" }] }) … … 31 31 FAIL new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org" }] }) assert_throws: function "function () { 32 32 eval(expr); 33 }" threw object "TypeError: Error creating RTCPeerConnection" that is not a DOMException InvalidAccessError: property "code" is equal to undefined, expected 1533 }" did not throw 34 34 FAIL new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org", username: "user" }] }) assert_throws: function "function () { 35 35 eval(expr); 36 }" threw object "TypeError: Error creating RTCPeerConnection" that is not a DOMException InvalidAccessError: property "code" is equal to undefined, expected 1536 }" did not throw 37 37 FAIL new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org", credential: "cred" }] }) assert_throws: function "function () { 38 38 eval(expr); 39 }" threw object "TypeError: Error creating RTCPeerConnection" that is not a DOMException InvalidAccessError: property "code" is equal to undefined, expected 1539 }" did not throw 40 40 FAIL new RTCPeerConnection({ iceServers: [{ urls: "relative-url" }] }) assert_throws: function "function () { 41 41 eval(expr); -
trunk/Source/WebCore/ChangeLog
r208523 r208525 1 2016-11-08 Philippe Normand <pnormand@igalia.com> 2 3 [WebRTC] white-list turns urls from the RTCConfiguration 4 https://bugs.webkit.org/show_bug.cgi?id=164506 5 6 Reviewed by Alejandro G. Castro. 7 8 * Modules/mediastream/RTCConfiguration.cpp: 9 (WebCore::validateIceServerURL): Add the turns URL scheme to the 10 list of supported relay and signaling server protocols. 11 1 12 2016-11-09 Joseph Pecoraro <pecoraro@apple.com> 2 13 -
trunk/Source/WebCore/Modules/mediastream/RTCConfiguration.cpp
r208118 r208525 46 46 { 47 47 URL url(URL(), iceURL); 48 if (url.isEmpty() || !url.isValid() || !(url.protocolIs("turn") || url.protocolIs(" stun")))48 if (url.isEmpty() || !url.isValid() || !(url.protocolIs("turn") || url.protocolIs("turns") || url.protocolIs("stun"))) 49 49 return false; 50 50
Note: See TracChangeset
for help on using the changeset viewer.