Skip to content

Commit a57d4c4

Browse files
Ahmad-S792Ahmad Saleem
authored andcommitted
RTCIceCandidate.toJSON() doesn't serialize usernameFragment
https://bugs.webkit.org/show_bug.cgi?id=307038 rdar://169679947 Reviewed by Philippe Normand. This patch aligns WebKit with Gecko / Firefox and Blink / Chromium. The toJSON() method was missing the usernameFragment field in its serialization, this patch adds it to progress failing test case. * Source/WebCore/Modules/mediastream/RTCIceCandidate.cpp: (WebCore::RTCIceCandidate::toJSON const): * LayoutTests/imported/w3c/web-platform-tests/webrtc/toJSON-expected.txt: Progression Canonical link: https://commits.webkit.org/306845@main
1 parent ea7d159 commit a57d4c4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

22
PASS RTCSessionDescription.toJSON serializes only specific attributes
3-
FAIL RTCIceCandidate.toJSON serializes only specific attributes assert_equals: expected (string) "test" but got (object) null
3+
PASS RTCIceCandidate.toJSON serializes only specific attributes
44

Source/WebCore/Modules/mediastream/RTCIceCandidate.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ RTCIceCandidateInit RTCIceCandidate::toJSON() const
7575
result.candidate = m_candidate;
7676
result.sdpMid = m_sdpMid;
7777
result.sdpMLineIndex = m_sdpMLineIndex;
78+
result.usernameFragment = m_fields.usernameFragment;
7879
return result;
7980
}
8081

0 commit comments

Comments
 (0)