Changeset 247430 in webkit
- Timestamp:
- Jul 15, 2019 7:32:48 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r247422 r247430 1 2019-07-15 Youenn Fablet <youenn@apple.com> 2 3 Filter SDP c lines 4 https://bugs.webkit.org/show_bug.cgi?id=199791 5 6 Reviewed by Eric Carlson. 7 8 * webrtc/datachannel/filter-ice-candidate.html: 9 1 10 2019-07-14 Dean Jackson <dino@apple.com> 2 11 -
trunk/LayoutTests/webrtc/datachannel/filter-ice-candidate.html
r218408 r247430 25 25 } 26 26 assert_equals(pc.localDescription.sdp.indexOf("a=candidate"), -1); 27 assert_true(pc.localDescription.sdp.indexOf("c=IN IP4 0.0.0.0") != -1 || pc.localDescription.sdp.indexOf("c=IN IP6 ::") != -1); 27 28 if (counter === 0) { 28 29 pc.createOffer().then((offer) => { 30 assert_true(offer.sdp.indexOf("c=IN IP4 0.0.0.0") != -1 || pc.localDescription.sdp.indexOf("c=IN IP6 ::") != -1); 29 31 assert_equals(offer.sdp.indexOf("a=candidate"), -1); 30 32 resolve(); … … 55 57 return; 56 58 } 59 assert_true(pc.localDescription.sdp.indexOf("c=IN IP4 0.0.0.0") == -1 && pc.localDescription.sdp.indexOf("c=IN IP6 ::") === -1); 57 60 assert_false(pc.localDescription.sdp.indexOf("a=candidate") === -1); 58 61 if (counter !== 0) { 59 62 // Redoing an offer now that we have some candidates. 60 63 pc.createOffer().then((offer) => { 64 assert_true(offer.sdp.indexOf("c=IN IP4 0.0.0.0") == -1 && pc.localDescription.sdp.indexOf("c=IN IP6 ::") === -1); 61 65 assert_false(offer.sdp.indexOf("a=candidate") === -1); 62 66 resolve(); -
trunk/Source/WebCore/ChangeLog
r247429 r247430 1 2019-07-15 Youenn Fablet <youenn@apple.com> 2 3 Filter SDP c lines 4 https://bugs.webkit.org/show_bug.cgi?id=199791 5 6 Reviewed by Eric Carlson. 7 8 As discussed in https://github.com/rtcweb-wg/mdns-ice-candidates/issues/91, 9 use 0.0.0.0 for c lines when filtering the SDP. 10 Covered by updated test. 11 12 * Modules/mediastream/PeerConnectionBackend.cpp: 13 (WebCore::PeerConnectionBackend::filterSDP const): 14 1 15 2019-07-15 Zalan Bujtas <zalan@apple.com> 2 16 -
trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.cpp
r244736 r247430 413 413 StringBuilder filteredSDP; 414 414 sdp.split('\n', [&filteredSDP](StringView line) { 415 if (!line.startsWith("a=candidate")) 415 if (line.startsWith("c=IN IP4")) 416 filteredSDP.append("c=IN IP4 0.0.0.0"); 417 else if (line.startsWith("c=IN IP6")) 418 filteredSDP.append("c=IN IP6 ::"); 419 else if (!line.startsWith("a=candidate")) 416 420 filteredSDP.append(line); 417 421 else if (line.find(" host ", 11) == notFound)
Note: See TracChangeset
for help on using the changeset viewer.