Skip to content

Commit 8c87b07

Browse files
Bashamegasaschanaz
andauthored
Migrate WebRTC removed types (#2283)
Co-authored-by: saschanaz <[email protected]>
1 parent 66fbabb commit 8c87b07

File tree

7 files changed

+84
-96
lines changed

7 files changed

+84
-96
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// https://w3c.github.io/webrtc-encoded-transform/
2+
3+
removals {
4+
dictionary RTCEncodedAudioFrameMetadata {
5+
member audioLevel // No implementation as of 2025-05
6+
}
7+
8+
dictionary RTCEncodedFrameMetadata {
9+
member captureTime // Blink only as of 2025-05
10+
member receiveTime // Blink only as of 2025-05
11+
member senderCaptureTimeOffset // Blink only as of 2025-05
12+
}
13+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// https://w3c.github.io/webrtc-identity/
2+
3+
removals {
4+
dictionary RTCConfiguration {
5+
member peerIdentity // Gecko only as of 2024-11
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// https://w3c.github.io/webrtc-priority/
2+
3+
removals {
4+
dictionary RTCDataChannelInit {
5+
member priority // Blink experimental only as of 2024-11
6+
}
7+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// https://w3c.github.io/webrtc-stats/
2+
3+
removals {
4+
dictionary RTCInboundRtpStreamStats {
5+
// https://searchfox.org/mozilla-central/source/dom/webidl/RTCStatsReport.webidl
6+
// https://searchfox.org/wubkat/source/Source/WebCore/Modules/mediastream/RTCStatsReport.idl
7+
// https://source.chromium.org/chromium/chromium/src/+/main:third_party/webrtc/stats/rtcstats_objects.cc
8+
member corruptionMeasurements // Blink only as of 2024-11
9+
member powerEfficientDecoder // Blink only as of 2024-11
10+
member totalCorruptionProbability // Blink only as of 2024-11
11+
member totalSquaredCorruptionProbability // Blink only as of 2024-11
12+
}
13+
14+
dictionary RTCOutboundRtpStreamStats {
15+
member powerEfficientEncoder // Blink only as of 2025-07
16+
member encoderImplementation // Blink only as of 2025-07
17+
member encodingIndex // Blink only as of 2025-07
18+
member packetsSentWithEct1 // No implementation as of 2025-08
19+
member psnrMeasurements // No implementation as of 2025-07
20+
member psnrSum // No implementation as of 2025-07
21+
}
22+
23+
dictionary RTCReceivedRtpStreamStats {
24+
member packetsReceivedWithCe // No implementation as of 2025-04
25+
member packetsReceivedWithEct1 // No implementation as of 2025-04
26+
member packetsReportedAsLost // No implementation as of 2025-04
27+
member packetsReportedAsLostButRecovered // No implementation as of 2025-04
28+
}
29+
30+
dictionary RTCTransportStats {
31+
member ccfbMessagesReceived // No implementation as of 2025-04
32+
member ccfbMessagesSent // No implementation as of 2025-04
33+
}
34+
}

inputfiles/patches/webrtc-svc.kdl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// https://w3c.github.io/webrtc-svc/
2+
3+
removals {
4+
dictionary RTCRtpEncodingParameters {
5+
member scalabilityMode // Blink only as of 2024-11
6+
}
7+
}

inputfiles/patches/webrtc.kdl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// https://w3c.github.io/webrtc-pc/
2+
3+
removals {
4+
dictionary RTCLocalIceCandidateInit {
5+
member relayProtocol // Blink only as of 2025-04
6+
member url // Blink only as of 2025-04
7+
}
8+
9+
dictionary RTCPeerConnectionIceEventInit {
10+
member url // WebKit only as of 2025-04
11+
}
12+
13+
dictionary RTCRtpEncodingParameters {
14+
member codec // Blink only as of 2024-11
15+
}
16+
}

inputfiles/removedTypes.jsonc

Lines changed: 0 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -360,102 +360,6 @@
360360
}
361361
}
362362
},
363-
"RTCEncodedAudioFrameMetadata": {
364-
"members": {
365-
"member": {
366-
"audioLevel": null // No implementation as of 2025-05
367-
}
368-
}
369-
},
370-
"RTCEncodedFrameMetadata": {
371-
"members": {
372-
"member": {
373-
"captureTime": null, // Blink only as of 2025-05
374-
"receiveTime": null, // Blink only as of 2025-05
375-
"senderCaptureTimeOffset": null // Blink only as of 2025-05
376-
}
377-
}
378-
},
379-
"RTCConfiguration": {
380-
"members": {
381-
"member": {
382-
"peerIdentity": null // Gecko only as of 2024-11
383-
}
384-
}
385-
},
386-
"RTCDataChannelInit": {
387-
"members": {
388-
"member": {
389-
"priority": null // Blink experimental only as of 2024-11
390-
}
391-
}
392-
},
393-
"RTCInboundRtpStreamStats": {
394-
"members": {
395-
"member": {
396-
// https://searchfox.org/mozilla-central/source/dom/webidl/RTCStatsReport.webidl
397-
// https://searchfox.org/wubkat/source/Source/WebCore/Modules/mediastream/RTCStatsReport.idl
398-
// https://source.chromium.org/chromium/chromium/src/+/main:third_party/webrtc/stats/rtcstats_objects.cc
399-
"corruptionMeasurements": null, // Blink only as of 2024-11
400-
"powerEfficientDecoder": null, // Blink only as of 2024-11
401-
"totalCorruptionProbability": null, // Blink only as of 2024-11
402-
"totalSquaredCorruptionProbability": null // Blink only as of 2024-11
403-
}
404-
}
405-
},
406-
"RTCLocalIceCandidateInit": {
407-
"members": {
408-
"member": {
409-
"relayProtocol": null, // Blink only as of 2025-04
410-
"url": null // Blink only as of 2025-04
411-
}
412-
}
413-
},
414-
"RTCOutboundRtpStreamStats": {
415-
"members": {
416-
"member": {
417-
"powerEfficientEncoder": null, // Blink only as of 2025-07
418-
"encoderImplementation": null, // Blink only as of 2025-07
419-
"encodingIndex": null, // Blink only as of 2025-07
420-
"packetsSentWithEct1": null, // No implementation as of 2025-08
421-
"psnrMeasurements": null, // No implementation as of 2025-07
422-
"psnrSum": null // No implementation as of 2025-07
423-
}
424-
}
425-
},
426-
"RTCReceivedRtpStreamStats": {
427-
"members": {
428-
"member": {
429-
"packetsReceivedWithCe": null, // No implementation as of 2025-04
430-
"packetsReceivedWithEct1": null, // No implementation as of 2025-04
431-
"packetsReportedAsLost": null, // No implementation as of 2025-04
432-
"packetsReportedAsLostButRecovered": null // No implementation as of 2025-04
433-
}
434-
}
435-
},
436-
"RTCPeerConnectionIceEventInit": {
437-
"members": {
438-
"member": {
439-
"url": null // WebKit only as of 2025-04
440-
}
441-
}
442-
},
443-
"RTCRtpEncodingParameters": {
444-
"members": {
445-
"member": {
446-
"codec": null, // Blink only as of 2024-11
447-
"scalabilityMode": null // Blink only as of 2024-11
448-
}
449-
}
450-
},
451-
"RTCTransportStats": {
452-
"members": {
453-
"member": {
454-
"ccfbMessagesReceived": null, // No implementation as of 2025-04
455-
"ccfbMessagesSent": null // No implementation as of 2025-04
456-
}
457-
}
458-
},
459363
"ScrollIntoViewOptions": {
460364
"members": {
461365
"member": {

0 commit comments

Comments
 (0)