Title: [247430] trunk
- Revision
- 247430
- Author
- [email protected]
- Date
- 2019-07-15 07:32:48 -0700 (Mon, 15 Jul 2019)
Log Message
Filter SDP c lines
https://bugs.webkit.org/show_bug.cgi?id=199791
Reviewed by Eric Carlson.
Source/WebCore:
As discussed in https://github.com/rtcweb-wg/mdns-ice-candidates/issues/91,
use 0.0.0.0 for c lines when filtering the SDP.
Covered by updated test.
* Modules/mediastream/PeerConnectionBackend.cpp:
(WebCore::PeerConnectionBackend::filterSDP const):
LayoutTests:
* webrtc/datachannel/filter-ice-candidate.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (247429 => 247430)
--- trunk/LayoutTests/ChangeLog 2019-07-15 13:39:32 UTC (rev 247429)
+++ trunk/LayoutTests/ChangeLog 2019-07-15 14:32:48 UTC (rev 247430)
@@ -1,3 +1,12 @@
+2019-07-15 Youenn Fablet <[email protected]>
+
+ Filter SDP c lines
+ https://bugs.webkit.org/show_bug.cgi?id=199791
+
+ Reviewed by Eric Carlson.
+
+ * webrtc/datachannel/filter-ice-candidate.html:
+
2019-07-14 Dean Jackson <[email protected]>
WebGL not supported on WKWebView on UIKit for Mac
Modified: trunk/LayoutTests/webrtc/datachannel/filter-ice-candidate.html (247429 => 247430)
--- trunk/LayoutTests/webrtc/datachannel/filter-ice-candidate.html 2019-07-15 13:39:32 UTC (rev 247429)
+++ trunk/LayoutTests/webrtc/datachannel/filter-ice-candidate.html 2019-07-15 14:32:48 UTC (rev 247430)
@@ -24,8 +24,10 @@
return;
}
assert_equals(pc.localDescription.sdp.indexOf("a=candidate"), -1);
+ assert_true(pc.localDescription.sdp.indexOf("c=IN IP4 0.0.0.0") != -1 || pc.localDescription.sdp.indexOf("c=IN IP6 ::") != -1);
if (counter === 0) {
pc.createOffer().then((offer) => {
+ assert_true(offer.sdp.indexOf("c=IN IP4 0.0.0.0") != -1 || pc.localDescription.sdp.indexOf("c=IN IP6 ::") != -1);
assert_equals(offer.sdp.indexOf("a=candidate"), -1);
resolve();
});
@@ -54,10 +56,12 @@
counter++;
return;
}
+ assert_true(pc.localDescription.sdp.indexOf("c=IN IP4 0.0.0.0") == -1 && pc.localDescription.sdp.indexOf("c=IN IP6 ::") === -1);
assert_false(pc.localDescription.sdp.indexOf("a=candidate") === -1);
if (counter !== 0) {
// Redoing an offer now that we have some candidates.
pc.createOffer().then((offer) => {
+ assert_true(offer.sdp.indexOf("c=IN IP4 0.0.0.0") == -1 && pc.localDescription.sdp.indexOf("c=IN IP6 ::") === -1);
assert_false(offer.sdp.indexOf("a=candidate") === -1);
resolve();
});
Modified: trunk/Source/WebCore/ChangeLog (247429 => 247430)
--- trunk/Source/WebCore/ChangeLog 2019-07-15 13:39:32 UTC (rev 247429)
+++ trunk/Source/WebCore/ChangeLog 2019-07-15 14:32:48 UTC (rev 247430)
@@ -1,3 +1,17 @@
+2019-07-15 Youenn Fablet <[email protected]>
+
+ Filter SDP c lines
+ https://bugs.webkit.org/show_bug.cgi?id=199791
+
+ Reviewed by Eric Carlson.
+
+ As discussed in https://github.com/rtcweb-wg/mdns-ice-candidates/issues/91,
+ use 0.0.0.0 for c lines when filtering the SDP.
+ Covered by updated test.
+
+ * Modules/mediastream/PeerConnectionBackend.cpp:
+ (WebCore::PeerConnectionBackend::filterSDP const):
+
2019-07-15 Zalan Bujtas <[email protected]>
naver.com: Video stops when tapping on the video to use buttons
Modified: trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.cpp (247429 => 247430)
--- trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.cpp 2019-07-15 13:39:32 UTC (rev 247429)
+++ trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.cpp 2019-07-15 14:32:48 UTC (rev 247430)
@@ -412,7 +412,11 @@
StringBuilder filteredSDP;
sdp.split('\n', [&filteredSDP](StringView line) {
- if (!line.startsWith("a=candidate"))
+ if (line.startsWith("c=IN IP4"))
+ filteredSDP.append("c=IN IP4 0.0.0.0");
+ else if (line.startsWith("c=IN IP6"))
+ filteredSDP.append("c=IN IP6 ::");
+ else if (!line.startsWith("a=candidate"))
filteredSDP.append(line);
else if (line.find(" host ", 11) == notFound)
filteredSDP.append(filterICECandidate(line.toString()));
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes