From 4c400b14290470a906b8b2d91333c6b8f1648273 Mon Sep 17 00:00:00 2001 From: Bashamega Date: Tue, 9 Dec 2025 13:12:32 +0200 Subject: [PATCH 1/2] Migrate WebRTC removed types --- .../patches/webrtc-encoded-transform.kdl | 11 +++ inputfiles/patches/webrtc-stats.kdl | 32 +++++++ inputfiles/patches/webrtc.kdl | 23 +++++ inputfiles/removedTypes.jsonc | 96 ------------------- 4 files changed, 66 insertions(+), 96 deletions(-) create mode 100644 inputfiles/patches/webrtc-encoded-transform.kdl create mode 100644 inputfiles/patches/webrtc-stats.kdl create mode 100644 inputfiles/patches/webrtc.kdl diff --git a/inputfiles/patches/webrtc-encoded-transform.kdl b/inputfiles/patches/webrtc-encoded-transform.kdl new file mode 100644 index 000000000..032ae777e --- /dev/null +++ b/inputfiles/patches/webrtc-encoded-transform.kdl @@ -0,0 +1,11 @@ +removals { + dictionary RTCEncodedAudioFrameMetadata { + member audioLevel // No implementation as of 2025-05 + } + + dictionary RTCEncodedFrameMetadata { + member captureTime // Blink only as of 2025-05 + member receiveTime // Blink only as of 2025-05 + member senderCaptureTimeOffset // Blink only as of 2025-05 + } +} diff --git a/inputfiles/patches/webrtc-stats.kdl b/inputfiles/patches/webrtc-stats.kdl new file mode 100644 index 000000000..7e6da8c34 --- /dev/null +++ b/inputfiles/patches/webrtc-stats.kdl @@ -0,0 +1,32 @@ +removals { + dictionary RTCInboundRtpStreamStats { + // https://searchfox.org/mozilla-central/source/dom/webidl/RTCStatsReport.webidl + // https://searchfox.org/wubkat/source/Source/WebCore/Modules/mediastream/RTCStatsReport.idl + // https://source.chromium.org/chromium/chromium/src/+/main:third_party/webrtc/stats/rtcstats_objects.cc + member corruptionMeasurements // Blink only as of 2024-11 + member powerEfficientDecoder // Blink only as of 2024-11 + member totalCorruptionProbability // Blink only as of 2024-11 + member totalSquaredCorruptionProbability // Blink only as of 2024-11 + } + + dictionary RTCOutboundRtpStreamStats { + member powerEfficientEncoder // Blink only as of 2025-07 + member encoderImplementation // Blink only as of 2025-07 + member encodingIndex // Blink only as of 2025-07 + member packetsSentWithEct1 // No implementation as of 2025-08 + member psnrMeasurements // No implementation as of 2025-07 + member psnrSum // No implementation as of 2025-07 + } + + dictionary RTCReceivedRtpStreamStats { + member packetsReceivedWithCe // No implementation as of 2025-04 + member packetsReceivedWithEct1 // No implementation as of 2025-04 + member packetsReportedAsLost // No implementation as of 2025-04 + member packetsReportedAsLostButRecovered // No implementation as of 2025-04 + } + + dictionary RTCTransportStats { + member ccfbMessagesReceived // No implementation as of 2025-04 + member ccfbMessagesSent // No implementation as of 2025-04 + } +} diff --git a/inputfiles/patches/webrtc.kdl b/inputfiles/patches/webrtc.kdl new file mode 100644 index 000000000..64fa562f6 --- /dev/null +++ b/inputfiles/patches/webrtc.kdl @@ -0,0 +1,23 @@ +removals { + dictionary RTCConfiguration { + member peerIdentity // Gecko only as of 2024-11 + } + + dictionary RTCDataChannelInit { + member priority // Blink experimental only as of 2024-11 + } + + dictionary RTCLocalIceCandidateInit { + member relayProtocol // Blink only as of 2025-04 + member url // Blink only as of 2025-04 + } + + dictionary RTCPeerConnectionIceEventInit { + member url // WebKit only as of 2025-04 + } + + dictionary RTCRtpEncodingParameters { + member codec // Blink only as of 2024-11 + member scalabilityMode // Blink only as of 2024-11 + } +} diff --git a/inputfiles/removedTypes.jsonc b/inputfiles/removedTypes.jsonc index 06cd05c7d..158f5ba31 100644 --- a/inputfiles/removedTypes.jsonc +++ b/inputfiles/removedTypes.jsonc @@ -365,102 +365,6 @@ } } }, - "RTCEncodedAudioFrameMetadata": { - "members": { - "member": { - "audioLevel": null // No implementation as of 2025-05 - } - } - }, - "RTCEncodedFrameMetadata": { - "members": { - "member": { - "captureTime": null, // Blink only as of 2025-05 - "receiveTime": null, // Blink only as of 2025-05 - "senderCaptureTimeOffset": null // Blink only as of 2025-05 - } - } - }, - "RTCConfiguration": { - "members": { - "member": { - "peerIdentity": null // Gecko only as of 2024-11 - } - } - }, - "RTCDataChannelInit": { - "members": { - "member": { - "priority": null // Blink experimental only as of 2024-11 - } - } - }, - "RTCInboundRtpStreamStats": { - "members": { - "member": { - // https://searchfox.org/mozilla-central/source/dom/webidl/RTCStatsReport.webidl - // https://searchfox.org/wubkat/source/Source/WebCore/Modules/mediastream/RTCStatsReport.idl - // https://source.chromium.org/chromium/chromium/src/+/main:third_party/webrtc/stats/rtcstats_objects.cc - "corruptionMeasurements": null, // Blink only as of 2024-11 - "powerEfficientDecoder": null, // Blink only as of 2024-11 - "totalCorruptionProbability": null, // Blink only as of 2024-11 - "totalSquaredCorruptionProbability": null // Blink only as of 2024-11 - } - } - }, - "RTCLocalIceCandidateInit": { - "members": { - "member": { - "relayProtocol": null, // Blink only as of 2025-04 - "url": null // Blink only as of 2025-04 - } - } - }, - "RTCOutboundRtpStreamStats": { - "members": { - "member": { - "powerEfficientEncoder": null, // Blink only as of 2025-07 - "encoderImplementation": null, // Blink only as of 2025-07 - "encodingIndex": null, // Blink only as of 2025-07 - "packetsSentWithEct1": null, // No implementation as of 2025-08 - "psnrMeasurements": null, // No implementation as of 2025-07 - "psnrSum": null // No implementation as of 2025-07 - } - } - }, - "RTCReceivedRtpStreamStats": { - "members": { - "member": { - "packetsReceivedWithCe": null, // No implementation as of 2025-04 - "packetsReceivedWithEct1": null, // No implementation as of 2025-04 - "packetsReportedAsLost": null, // No implementation as of 2025-04 - "packetsReportedAsLostButRecovered": null // No implementation as of 2025-04 - } - } - }, - "RTCPeerConnectionIceEventInit": { - "members": { - "member": { - "url": null // WebKit only as of 2025-04 - } - } - }, - "RTCRtpEncodingParameters": { - "members": { - "member": { - "codec": null, // Blink only as of 2024-11 - "scalabilityMode": null // Blink only as of 2024-11 - } - } - }, - "RTCTransportStats": { - "members": { - "member": { - "ccfbMessagesReceived": null, // No implementation as of 2025-04 - "ccfbMessagesSent": null // No implementation as of 2025-04 - } - } - }, "ScrollIntoViewOptions": { "members": { "member": { From 747977880b98069bcfdb415240bb891a2c81757a Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sat, 13 Dec 2025 18:20:01 +0100 Subject: [PATCH 2/2] Split patches per each webrtc spec --- inputfiles/patches/webrtc-encoded-transform.kdl | 2 ++ inputfiles/patches/webrtc-identity.kdl | 7 +++++++ inputfiles/patches/webrtc-priority.kdl | 7 +++++++ inputfiles/patches/webrtc-stats.kdl | 2 ++ inputfiles/patches/webrtc-svc.kdl | 7 +++++++ inputfiles/patches/webrtc.kdl | 13 +++---------- 6 files changed, 28 insertions(+), 10 deletions(-) create mode 100644 inputfiles/patches/webrtc-identity.kdl create mode 100644 inputfiles/patches/webrtc-priority.kdl create mode 100644 inputfiles/patches/webrtc-svc.kdl diff --git a/inputfiles/patches/webrtc-encoded-transform.kdl b/inputfiles/patches/webrtc-encoded-transform.kdl index 032ae777e..16d090dc7 100644 --- a/inputfiles/patches/webrtc-encoded-transform.kdl +++ b/inputfiles/patches/webrtc-encoded-transform.kdl @@ -1,3 +1,5 @@ +// https://w3c.github.io/webrtc-encoded-transform/ + removals { dictionary RTCEncodedAudioFrameMetadata { member audioLevel // No implementation as of 2025-05 diff --git a/inputfiles/patches/webrtc-identity.kdl b/inputfiles/patches/webrtc-identity.kdl new file mode 100644 index 000000000..5a17de969 --- /dev/null +++ b/inputfiles/patches/webrtc-identity.kdl @@ -0,0 +1,7 @@ +// https://w3c.github.io/webrtc-identity/ + +removals { + dictionary RTCConfiguration { + member peerIdentity // Gecko only as of 2024-11 + } +} diff --git a/inputfiles/patches/webrtc-priority.kdl b/inputfiles/patches/webrtc-priority.kdl new file mode 100644 index 000000000..5fa475c1e --- /dev/null +++ b/inputfiles/patches/webrtc-priority.kdl @@ -0,0 +1,7 @@ +// https://w3c.github.io/webrtc-priority/ + +removals { + dictionary RTCDataChannelInit { + member priority // Blink experimental only as of 2024-11 + } +} diff --git a/inputfiles/patches/webrtc-stats.kdl b/inputfiles/patches/webrtc-stats.kdl index 7e6da8c34..4cad836a8 100644 --- a/inputfiles/patches/webrtc-stats.kdl +++ b/inputfiles/patches/webrtc-stats.kdl @@ -1,3 +1,5 @@ +// https://w3c.github.io/webrtc-stats/ + removals { dictionary RTCInboundRtpStreamStats { // https://searchfox.org/mozilla-central/source/dom/webidl/RTCStatsReport.webidl diff --git a/inputfiles/patches/webrtc-svc.kdl b/inputfiles/patches/webrtc-svc.kdl new file mode 100644 index 000000000..d58ac5861 --- /dev/null +++ b/inputfiles/patches/webrtc-svc.kdl @@ -0,0 +1,7 @@ +// https://w3c.github.io/webrtc-svc/ + +removals { + dictionary RTCRtpEncodingParameters { + member scalabilityMode // Blink only as of 2024-11 + } +} diff --git a/inputfiles/patches/webrtc.kdl b/inputfiles/patches/webrtc.kdl index 64fa562f6..0fb1ab9e7 100644 --- a/inputfiles/patches/webrtc.kdl +++ b/inputfiles/patches/webrtc.kdl @@ -1,12 +1,6 @@ -removals { - dictionary RTCConfiguration { - member peerIdentity // Gecko only as of 2024-11 - } - - dictionary RTCDataChannelInit { - member priority // Blink experimental only as of 2024-11 - } +// https://w3c.github.io/webrtc-pc/ +removals { dictionary RTCLocalIceCandidateInit { member relayProtocol // Blink only as of 2025-04 member url // Blink only as of 2025-04 @@ -15,9 +9,8 @@ removals { dictionary RTCPeerConnectionIceEventInit { member url // WebKit only as of 2025-04 } - + dictionary RTCRtpEncodingParameters { member codec // Blink only as of 2024-11 - member scalabilityMode // Blink only as of 2024-11 } }