From c227f8a844bddb9050c56eda0e430653c0021f85 Mon Sep 17 00:00:00 2001 From: Bashamega Date: Wed, 17 Dec 2025 07:23:13 +0200 Subject: [PATCH 1/5] Migrate 10 removed dictionaries --- inputfiles/patches/credential-management.kdl | 8 ++ inputfiles/patches/css-font-loading.kdl | 5 ++ inputfiles/patches/html.kdl | 10 +++ inputfiles/patches/screen-capture.kdl | 13 +++ inputfiles/patches/service-workers.kdl | 5 ++ inputfiles/patches/webaudio.kdl | 6 ++ inputfiles/patches/webcodecs.kdl | 14 ++++ inputfiles/removedTypes.jsonc | 84 -------------------- 8 files changed, 61 insertions(+), 84 deletions(-) create mode 100644 inputfiles/patches/credential-management.kdl create mode 100644 inputfiles/patches/css-font-loading.kdl create mode 100644 inputfiles/patches/screen-capture.kdl create mode 100644 inputfiles/patches/service-workers.kdl create mode 100644 inputfiles/patches/webaudio.kdl diff --git a/inputfiles/patches/credential-management.kdl b/inputfiles/patches/credential-management.kdl new file mode 100644 index 000000000..e0cc8ce61 --- /dev/null +++ b/inputfiles/patches/credential-management.kdl @@ -0,0 +1,8 @@ +removals { + dictionary CredentialCreationOptions { + member digital // Blink test-only as of 2025-05 + member federated // Blink only as of 2025-05 + member password // Blink only as of 2025-05 + member mediation // WebKit only as of 2025-05 + } +} diff --git a/inputfiles/patches/css-font-loading.kdl b/inputfiles/patches/css-font-loading.kdl new file mode 100644 index 000000000..40d51a894 --- /dev/null +++ b/inputfiles/patches/css-font-loading.kdl @@ -0,0 +1,5 @@ +removals { + dictionary FontFaceDescriptors { + member variationSettings // Gecko-only as of 2022-10 + } +} diff --git a/inputfiles/patches/html.kdl b/inputfiles/patches/html.kdl index 0d6af7a79..0b0c24276 100644 --- a/inputfiles/patches/html.kdl +++ b/inputfiles/patches/html.kdl @@ -14,3 +14,13 @@ interface-mixin MessageEventTarget overrideThis=T typeParameters=T interface-mixin WindowEventHandlers { property onunload deprecated="The unload event is not reliable, consider visibilitychange or pagehide events." } + +removals { + dictionary CanvasRenderingContext2DSettings { + member colorType // No implementation as of 2025-02 + } + + dictionary FocusOptions { + member focusVisible // Gecko only as of 2022-09 + } +} diff --git a/inputfiles/patches/screen-capture.kdl b/inputfiles/patches/screen-capture.kdl new file mode 100644 index 000000000..4dfc5fe4a --- /dev/null +++ b/inputfiles/patches/screen-capture.kdl @@ -0,0 +1,13 @@ +removals { + dictionary DisplayMediaStreamOptions { + // Only `audio` and `video` are implemented by 2+ engines, everything else is currently Blink only. + // https://searchfox.org/mozilla-central/source/dom/webidl/MediaStream.webidl + // https://searchfox.org/wubkat/source/Source/WebCore/Modules/mediastream/MediaDevices.idl + // https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/node_modules/@webref/idl/screen-capture.idl + member monitorTypeSurfaces + member selfBrowserSurface + member surfaceSwitching + member systemAudio + member windowAudio + } +} diff --git a/inputfiles/patches/service-workers.kdl b/inputfiles/patches/service-workers.kdl new file mode 100644 index 000000000..ed59447ae --- /dev/null +++ b/inputfiles/patches/service-workers.kdl @@ -0,0 +1,5 @@ +removals { + dictionary FetchEventInit { + member replacesClientId // Not implemented as of 2025-04 + } +} diff --git a/inputfiles/patches/webaudio.kdl b/inputfiles/patches/webaudio.kdl new file mode 100644 index 000000000..0d19c5b74 --- /dev/null +++ b/inputfiles/patches/webaudio.kdl @@ -0,0 +1,6 @@ +removals { + dictionary AudioContextOptions { + member renderSizeHint // No implementation as of 2023-10 + member sinkId // Blink only as of 2023-10 + } +} \ No newline at end of file diff --git a/inputfiles/patches/webcodecs.kdl b/inputfiles/patches/webcodecs.kdl index 05e953b92..a84fc563e 100644 --- a/inputfiles/patches/webcodecs.kdl +++ b/inputfiles/patches/webcodecs.kdl @@ -31,4 +31,18 @@ removals { linear // Blink only as of 2022-10 pq // Blink only as of 2022-10 } + + dictionary EncodedVideoChunkInit { + member transfer // Blink only as of 2023-11 + } + + dictionary EncodedVideoChunkMetadata { + member alphaSideData // Blink only as of 2023-03 + member svc // Blink only as of 2023-03 + } + + dictionary AudioEncoderConfig { + member aac // Blink only as of 2024-09 + member flac // Blink only as of 2024-09 + } } diff --git a/inputfiles/removedTypes.jsonc b/inputfiles/removedTypes.jsonc index e96f6e084..1132f0059 100644 --- a/inputfiles/removedTypes.jsonc +++ b/inputfiles/removedTypes.jsonc @@ -118,90 +118,6 @@ }, "dictionaries": { "dictionary": { - "AudioContextOptions": { - "members": { - "member": { - "renderSizeHint": null, // No implementation as of 2023-10 - "sinkId": null // Blink only as of 2023-10 - } - } - }, - "AudioEncoderConfig": { - "members": { - "member": { - "aac": null, // Blink only as of 2024-09 - "flac": null // Blink only as of 2024-09 - } - } - }, - "CanvasRenderingContext2DSettings": { - "members": { - "member": { - "colorType": null // No implementation as of 2025-02 - } - } - }, - "CredentialCreationOptions": { - "members": { - "member": { - "digital": null, // Blink test-only as of 2025-05 - "federated": null, // Blink only as of 2025-05 - "password": null, // Blink only as of 2025-05 - "mediation": null // WebKit only as of 2025-05 - } - } - }, - "DisplayMediaStreamOptions": { - "members": { - "member": { - // Only `audio` and `video` are implemented by 2+ engines, everything else is currently Blink only. - // https://searchfox.org/mozilla-central/source/dom/webidl/MediaStream.webidl - // https://searchfox.org/wubkat/source/Source/WebCore/Modules/mediastream/MediaDevices.idl - // https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/node_modules/@webref/idl/screen-capture.idl - "monitorTypeSurfaces": null, - "selfBrowserSurface": null, - "surfaceSwitching": null, - "systemAudio": null, - "windowAudio": null - } - } - }, - "EncodedVideoChunkInit": { - "members": { - "member": { - "transfer": null, // Blink only as of 2023-11 - } - } - }, - "EncodedVideoChunkMetadata": { - "members": { - "member": { - "alphaSideData": null, // Blink only as of 2023-03 - "svc": null // Blink only as of 2023-03 - } - } - }, - "FetchEventInit": { - "members": { - "member": { - "replacesClientId": null // Not implemented as of 2025-04 - } - } - }, - "FocusOptions": { - "members": { - "member": { - "focusVisible": null // Gecko only as of 2022-09 - } - } - }, - "FontFaceDescriptors": { - "members": { - "member": { - "variationSettings": null // Gecko-only as of 2022-10 - } - } - }, "GetAnimationsOptions": { "members": { "member": { From 1204b68d7e82a613972ab37164e17511065676a7 Mon Sep 17 00:00:00 2001 From: Bashamega Date: Wed, 17 Dec 2025 07:26:18 +0200 Subject: [PATCH 2/5] Adds spaces --- inputfiles/patches/html.kdl | 2 +- inputfiles/patches/webaudio.kdl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inputfiles/patches/html.kdl b/inputfiles/patches/html.kdl index 28ea96058..7f2c13105 100644 --- a/inputfiles/patches/html.kdl +++ b/inputfiles/patches/html.kdl @@ -28,4 +28,4 @@ removals { dictionary FocusOptions { member focusVisible // Gecko only as of 2022-09 } -} \ No newline at end of file +} diff --git a/inputfiles/patches/webaudio.kdl b/inputfiles/patches/webaudio.kdl index 0d19c5b74..daff35450 100644 --- a/inputfiles/patches/webaudio.kdl +++ b/inputfiles/patches/webaudio.kdl @@ -3,4 +3,4 @@ removals { member renderSizeHint // No implementation as of 2023-10 member sinkId // Blink only as of 2023-10 } -} \ No newline at end of file +} From 98628b2ba985166673b1529b28b6df1349473d13 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Wed, 17 Dec 2025 11:30:30 +0100 Subject: [PATCH 3/5] Add comments for aac and flac members in AudioEncoderConfig --- inputfiles/patches/webcodecs.kdl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/inputfiles/patches/webcodecs.kdl b/inputfiles/patches/webcodecs.kdl index a84fc563e..4bc5f617e 100644 --- a/inputfiles/patches/webcodecs.kdl +++ b/inputfiles/patches/webcodecs.kdl @@ -42,7 +42,11 @@ removals { } dictionary AudioEncoderConfig { - member aac // Blink only as of 2024-09 - member flac // Blink only as of 2024-09 + // https://w3c.github.io/webcodecs/aac_codec_registration.html + // Blink only as of 2024-09 + member aac + // https://w3c.github.io/webcodecs/flac_codec_registration.html + // Blink only as of 2024-09 + member flac } } From e7449dc2358cd112cff3383f55c566cd73444ea5 Mon Sep 17 00:00:00 2001 From: Bashamega Date: Wed, 17 Dec 2025 13:22:44 +0200 Subject: [PATCH 4/5] transform web animation instead of css --- inputfiles/patches/css-font-loading.kdl | 5 ----- inputfiles/patches/web-animations.kdl | 5 +++++ inputfiles/removedTypes.jsonc | 7 ------- 3 files changed, 5 insertions(+), 12 deletions(-) delete mode 100644 inputfiles/patches/css-font-loading.kdl create mode 100644 inputfiles/patches/web-animations.kdl diff --git a/inputfiles/patches/css-font-loading.kdl b/inputfiles/patches/css-font-loading.kdl deleted file mode 100644 index 40d51a894..000000000 --- a/inputfiles/patches/css-font-loading.kdl +++ /dev/null @@ -1,5 +0,0 @@ -removals { - dictionary FontFaceDescriptors { - member variationSettings // Gecko-only as of 2022-10 - } -} diff --git a/inputfiles/patches/web-animations.kdl b/inputfiles/patches/web-animations.kdl new file mode 100644 index 000000000..769c6e48e --- /dev/null +++ b/inputfiles/patches/web-animations.kdl @@ -0,0 +1,5 @@ +removals { + dictionary GetAnimationsOptions { + member pseudoElement // No implementation as of 2024-11 + } +} diff --git a/inputfiles/removedTypes.jsonc b/inputfiles/removedTypes.jsonc index 1132f0059..0dbcf5286 100644 --- a/inputfiles/removedTypes.jsonc +++ b/inputfiles/removedTypes.jsonc @@ -118,13 +118,6 @@ }, "dictionaries": { "dictionary": { - "GetAnimationsOptions": { - "members": { - "member": { - "pseudoElement": null // No implementation as of 2024-11 - } - } - }, "ImageDataSettings": { "members": { "member": { From 129d14aee25054b2d562210dda95119bafda8a2c Mon Sep 17 00:00:00 2001 From: Bashamega Date: Wed, 17 Dec 2025 13:25:14 +0200 Subject: [PATCH 5/5] - --- inputfiles/removedTypes.jsonc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/inputfiles/removedTypes.jsonc b/inputfiles/removedTypes.jsonc index 0dbcf5286..668d35b51 100644 --- a/inputfiles/removedTypes.jsonc +++ b/inputfiles/removedTypes.jsonc @@ -118,6 +118,13 @@ }, "dictionaries": { "dictionary": { + "FontFaceDescriptors": { + "members": { + "member": { + "variationSettings": null // Gecko-only as of 2022-10 + } + } + }, "ImageDataSettings": { "members": { "member": {