Skip to content

Commit 5e39633

Browse files
committed
Migrate Crypto to KDL
1 parent 1081d77 commit 5e39633

File tree

3 files changed

+51
-68
lines changed

3 files changed

+51
-68
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
removals {
2+
dictionary PublicKeyCredentialCreationOptions {
3+
member attestationFormats // Blink only as of 2024-08
4+
member hints // Blink only as of 2024-08
5+
}
6+
7+
dictionary PublicKeyCredentialCreationOptionsJSON {
8+
member attestationFormats // Gecko only as of 2024-08
9+
}
10+
11+
dictionary PublicKeyCredentialRequestOptions {
12+
member hints // Blink only as of 2024-08
13+
}
14+
}

inputfiles/patches/crypto.kdl

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,40 @@ interface CryptoKey {
1212
}
1313
}
1414
}
15+
16+
removals {
17+
enum KeyFormat {
18+
raw-private // No implementation as of 2025-09
19+
raw-public // No implementation as of 2025-09
20+
raw-secret // No implementation as of 2025-09
21+
raw-seed // No implementation as of 2025-09
22+
}
23+
24+
enum KeyUsage {
25+
decapsulateBits // No implementation as of 2025-09
26+
decapsulateKey // No implementation as of 2025-09
27+
encapsulateBits // No implementation as of 2025-09
28+
encapsulateKey // No implementation as of 2025-09
29+
}
30+
31+
dictionary KeySystemTrackConfiguration {
32+
member encryptionScheme // Gecko only as of 2025-05
33+
}
34+
35+
dictionary CredentialRequestOptions {
36+
// Only `mediation`, `publicKey`, `signal` are implemented by 2+ engines, everything else is currently Blink only.
37+
// https://searchfox.org/mozilla-central/source/dom/webidl/CredentialManagement.webidl
38+
// https://searchfox.org/wubkat/source/Source/WebCore/Modules/credentialmanagement/CredentialRequestOptions.idl
39+
// https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/credentialmanagement/credential_request_options.idl
40+
member digital // Behind a flag in WebKit and Blink as of 2024-03
41+
member federated
42+
member identity
43+
member otp
44+
member password
45+
}
46+
47+
dictionary JsonWebKey {
48+
member priv // No implementation as of 2025-09
49+
member pub // No implementation as of 2025-09
50+
}
51+
}

inputfiles/removedTypes.jsonc

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,6 @@
1616
"ConnectionType": {
1717
"value": ["wimax"]
1818
},
19-
"KeyFormat": {
20-
"value": [
21-
"raw-private", // No implementation as of 2025-09
22-
"raw-public", // No implementation as of 2025-09
23-
"raw-secret", // No implementation as of 2025-09
24-
"raw-seed" // No implementation as of 2025-09
25-
]
26-
},
27-
"KeyUsage": {
28-
"value": [
29-
"decapsulateBits", // No implementation as of 2025-09
30-
"decapsulateKey", // No implementation as of 2025-09
31-
"encapsulateBits", // No implementation as of 2025-09
32-
"encapsulateKey" // No implementation as of 2025-09
33-
]
34-
},
3519
"MediaSessionAction": {
3620
"value": [
3721
"enterpictureinpicture", // Blink only as of 2024-07
@@ -234,21 +218,6 @@
234218
}
235219
}
236220
},
237-
"CredentialRequestOptions": {
238-
"members": {
239-
"member": {
240-
// Only `mediation`, `publicKey`, `signal` are implemented by 2+ engines, everything else is currently Blink only.
241-
// https://searchfox.org/mozilla-central/source/dom/webidl/CredentialManagement.webidl
242-
// https://searchfox.org/wubkat/source/Source/WebCore/Modules/credentialmanagement/CredentialRequestOptions.idl
243-
// https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/credentialmanagement/credential_request_options.idl
244-
"digital": null, // Behind a flag in WebKit and Blink as of 2024-03
245-
"federated": null,
246-
"identity": null,
247-
"otp": null,
248-
"password": null
249-
}
250-
}
251-
},
252221
"DisplayMediaStreamOptions": {
253222
"members": {
254223
"member": {
@@ -322,14 +291,6 @@
322291
}
323292
}
324293
},
325-
"JsonWebKey": {
326-
"members": {
327-
"member": {
328-
"priv": null, // No implementation as of 2025-09
329-
"pub": null // No implementation as of 2025-09
330-
}
331-
}
332-
},
333294
"KeyframeAnimationOptions": {
334295
"members": {
335296
"member": {
@@ -338,13 +299,6 @@
338299
}
339300
}
340301
},
341-
"KeySystemTrackConfiguration": {
342-
"members": {
343-
"member": {
344-
"encryptionScheme": null // Gecko only as of 2025-05
345-
}
346-
}
347-
},
348302
"MediaCapabilitiesDecodingInfo": {
349303
"members": {
350304
"member": {
@@ -453,28 +407,6 @@
453407
}
454408
}
455409
},
456-
"PublicKeyCredentialCreationOptions": {
457-
"members": {
458-
"member": {
459-
"attestationFormats": null, // Blink only as of 2024-08
460-
"hints": null // Blink only as of 2024-08
461-
}
462-
}
463-
},
464-
"PublicKeyCredentialCreationOptionsJSON": {
465-
"members": {
466-
"member": {
467-
"attestationFormats": null // Gecko only as of 2024-08
468-
}
469-
}
470-
},
471-
"PublicKeyCredentialRequestOptions": {
472-
"members": {
473-
"member": {
474-
"hints": null // Blink only as of 2024-08
475-
}
476-
}
477-
},
478410
"PushEventInit": {
479411
"members": {
480412
"member": {

0 commit comments

Comments
 (0)