Skip to content

Commit

Permalink
Bug 1830790 - P16 - remove localSdp and remoteSdp from internal stats…
Browse files Browse the repository at this point in the history
… report;r=bwc,webidl,smaug

Differential Revision: https://phabricator.services.mozilla.com/D178978
  • Loading branch information
na-g committed May 31, 2023
1 parent e47d7b2 commit bc85562
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dom/media/webrtc/WebrtcGlobal.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ struct ParamTraits<mozilla::dom::RTCStatsCollection> {

DEFINE_IPC_SERIALIZER_WITH_SUPER_CLASS_AND_FIELDS(
mozilla::dom::RTCStatsReportInternal, mozilla::dom::RTCStatsCollection,
mClosed, mLocalSdp, mSdpHistory, mPcid, mBrowserId, mRemoteSdp, mTimestamp,
mCallDurationMs, mIceRestarts, mIceRollbacks, mOfferer, mConfiguration);
mClosed, mSdpHistory, mPcid, mBrowserId, mTimestamp, mCallDurationMs,
mIceRestarts, mIceRollbacks, mOfferer, mConfiguration);

typedef mozilla::dom::RTCStats RTCStats;

Expand Down
4 changes: 0 additions & 4 deletions dom/media/webrtc/jsapi/PeerConnectionImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3737,10 +3737,6 @@ RefPtr<dom::RTCStatsReportPromise> PeerConnectionImpl::GetStats(
mJsepSession->GetLocalDescription(kJsepDescriptionPendingOrCurrent);
std::string remoteDescription =
mJsepSession->GetRemoteDescription(kJsepDescriptionPendingOrCurrent);
report->mLocalSdp.Construct(
NS_ConvertASCIItoUTF16(localDescription.c_str()));
report->mRemoteSdp.Construct(
NS_ConvertASCIItoUTF16(remoteDescription.c_str()));
if (!report->mSdpHistory.AppendElements(mSdpHistory, fallible)) {
mozalloc_handle_oom(0);
}
Expand Down
2 changes: 0 additions & 2 deletions dom/webidl/RTCStatsReport.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,6 @@ dictionary RTCStatsReportInternal : RTCStatsCollection {
required unsigned long browserId;
RTCConfigurationInternal configuration;
DOMString jsepSessionErrors;
DOMString localSdp;
DOMString remoteSdp;
// TODO demux from RTCStatsReportInternal in bug 1830824
sequence<RTCSdpHistoryEntryInternal> sdpHistory = [];
required DOMHighResTimeStamp timestamp;
Expand Down

0 comments on commit bc85562

Please sign in to comment.