Skip to content

Commit 974688d

Browse files
authored
Manually update to idl@3.39.1, bcd@5.3.21 (#1631)
Co-authored-by: saschanaz <saschanaz@users.noreply.github.com>
1 parent 9a8d971 commit 974688d

7 files changed

+87
-70
lines changed

baselines/dom.generated.d.ts

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,6 @@ interface FontFaceDescriptors {
534534
stretch?: string;
535535
style?: string;
536536
unicodeRange?: string;
537-
variant?: string;
538537
weight?: string;
539538
}
540539

@@ -1000,27 +999,16 @@ interface NavigationPreloadState {
1000999
headerValue?: string;
10011000
}
10021001

1003-
interface NotificationAction {
1004-
action: string;
1005-
icon?: string;
1006-
title: string;
1007-
}
1008-
10091002
interface NotificationOptions {
1010-
actions?: NotificationAction[];
10111003
badge?: string;
10121004
body?: string;
10131005
data?: any;
10141006
dir?: NotificationDirection;
10151007
icon?: string;
1016-
image?: string;
10171008
lang?: string;
1018-
renotify?: boolean;
10191009
requireInteraction?: boolean;
10201010
silent?: boolean | null;
10211011
tag?: string;
1022-
timestamp?: EpochTimeStamp;
1023-
vibrate?: VibratePattern;
10241012
}
10251013

10261014
interface OfflineAudioCompletionEventInit extends EventInit {
@@ -1330,16 +1318,21 @@ interface RTCDtlsFingerprint {
13301318

13311319
interface RTCEncodedAudioFrameMetadata {
13321320
contributingSources?: number[];
1321+
payloadType?: number;
1322+
sequenceNumber?: number;
13331323
synchronizationSource?: number;
13341324
}
13351325

13361326
interface RTCEncodedVideoFrameMetadata {
1327+
contributingSources?: number[];
13371328
dependencies?: number[];
13381329
frameId?: number;
13391330
height?: number;
1331+
payloadType?: number;
13401332
spatialIndex?: number;
13411333
synchronizationSource?: number;
13421334
temporalIndex?: number;
1335+
timestamp?: number;
13431336
width?: number;
13441337
}
13451338

@@ -5492,6 +5485,10 @@ interface CanvasTextDrawingStyles {
54925485
font: string;
54935486
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */
54945487
fontKerning: CanvasFontKerning;
5488+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */
5489+
fontStretch: CanvasFontStretch;
5490+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
5491+
fontVariantCaps: CanvasFontVariantCaps;
54955492
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
54965493
letterSpacing: string;
54975494
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
@@ -8535,8 +8532,6 @@ interface FontFace {
85358532
style: string;
85368533
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */
85378534
unicodeRange: string;
8538-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variant) */
8539-
variant: string;
85408535
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */
85418536
weight: string;
85428537
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */
@@ -16414,6 +16409,8 @@ interface Notification extends EventTarget {
1641416409
onerror: ((this: Notification, ev: Event) => any) | null;
1641516410
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
1641616411
onshow: ((this: Notification, ev: Event) => any) | null;
16412+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */
16413+
readonly requireInteraction: boolean;
1641716414
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */
1641816415
readonly silent: boolean | null;
1641916416
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */

baselines/serviceworker.generated.d.ts

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ interface FontFaceDescriptors {
230230
stretch?: string;
231231
style?: string;
232232
unicodeRange?: string;
233-
variant?: string;
234233
weight?: string;
235234
}
236235

@@ -395,32 +394,21 @@ interface NavigationPreloadState {
395394
headerValue?: string;
396395
}
397396

398-
interface NotificationAction {
399-
action: string;
400-
icon?: string;
401-
title: string;
402-
}
403-
404397
interface NotificationEventInit extends ExtendableEventInit {
405398
action?: string;
406399
notification: Notification;
407400
}
408401

409402
interface NotificationOptions {
410-
actions?: NotificationAction[];
411403
badge?: string;
412404
body?: string;
413405
data?: any;
414406
dir?: NotificationDirection;
415407
icon?: string;
416-
image?: string;
417408
lang?: string;
418-
renotify?: boolean;
419409
requireInteraction?: boolean;
420410
silent?: boolean | null;
421411
tag?: string;
422-
timestamp?: EpochTimeStamp;
423-
vibrate?: VibratePattern;
424412
}
425413

426414
interface Pbkdf2Params extends Algorithm {
@@ -1528,6 +1516,10 @@ interface CanvasTextDrawingStyles {
15281516
font: string;
15291517
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */
15301518
fontKerning: CanvasFontKerning;
1519+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */
1520+
fontStretch: CanvasFontStretch;
1521+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
1522+
fontVariantCaps: CanvasFontVariantCaps;
15311523
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
15321524
letterSpacing: string;
15331525
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
@@ -2696,8 +2688,6 @@ interface FontFace {
26962688
style: string;
26972689
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */
26982690
unicodeRange: string;
2699-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variant) */
2700-
variant: string;
27012691
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */
27022692
weight: string;
27032693
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */
@@ -3878,6 +3868,8 @@ interface Notification extends EventTarget {
38783868
onerror: ((this: Notification, ev: Event) => any) | null;
38793869
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
38803870
onshow: ((this: Notification, ev: Event) => any) | null;
3871+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */
3872+
readonly requireInteraction: boolean;
38813873
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */
38823874
readonly silent: boolean | null;
38833875
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */
@@ -8583,7 +8575,6 @@ type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
85838575
type TimerHandler = string | Function;
85848576
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
85858577
type Uint32List = Uint32Array | GLuint[];
8586-
type VibratePattern = number | number[];
85878578
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
85888579
type BinaryType = "arraybuffer" | "blob";
85898580
type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";

baselines/sharedworker.generated.d.ts

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ interface FontFaceDescriptors {
205205
stretch?: string;
206206
style?: string;
207207
unicodeRange?: string;
208-
variant?: string;
209208
weight?: string;
210209
}
211210

@@ -370,27 +369,16 @@ interface NavigationPreloadState {
370369
headerValue?: string;
371370
}
372371

373-
interface NotificationAction {
374-
action: string;
375-
icon?: string;
376-
title: string;
377-
}
378-
379372
interface NotificationOptions {
380-
actions?: NotificationAction[];
381373
badge?: string;
382374
body?: string;
383375
data?: any;
384376
dir?: NotificationDirection;
385377
icon?: string;
386-
image?: string;
387378
lang?: string;
388-
renotify?: boolean;
389379
requireInteraction?: boolean;
390380
silent?: boolean | null;
391381
tag?: string;
392-
timestamp?: EpochTimeStamp;
393-
vibrate?: VibratePattern;
394382
}
395383

396384
interface Pbkdf2Params extends Algorithm {
@@ -1500,6 +1488,10 @@ interface CanvasTextDrawingStyles {
15001488
font: string;
15011489
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */
15021490
fontKerning: CanvasFontKerning;
1491+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */
1492+
fontStretch: CanvasFontStretch;
1493+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
1494+
fontVariantCaps: CanvasFontVariantCaps;
15031495
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
15041496
letterSpacing: string;
15051497
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
@@ -2585,8 +2577,6 @@ interface FontFace {
25852577
style: string;
25862578
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */
25872579
unicodeRange: string;
2588-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variant) */
2589-
variant: string;
25902580
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */
25912581
weight: string;
25922582
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */
@@ -3767,6 +3757,8 @@ interface Notification extends EventTarget {
37673757
onerror: ((this: Notification, ev: Event) => any) | null;
37683758
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
37693759
onshow: ((this: Notification, ev: Event) => any) | null;
3760+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */
3761+
readonly requireInteraction: boolean;
37703762
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */
37713763
readonly silent: boolean | null;
37723764
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */
@@ -8591,7 +8583,6 @@ type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
85918583
type TimerHandler = string | Function;
85928584
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
85938585
type Uint32List = Uint32Array | GLuint[];
8594-
type VibratePattern = number | number[];
85958586
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
85968587
type BinaryType = "arraybuffer" | "blob";
85978588
type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";

baselines/webworker.generated.d.ts

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ interface FontFaceDescriptors {
249249
stretch?: string;
250250
style?: string;
251251
unicodeRange?: string;
252-
variant?: string;
253252
weight?: string;
254253
}
255254

@@ -414,32 +413,21 @@ interface NavigationPreloadState {
414413
headerValue?: string;
415414
}
416415

417-
interface NotificationAction {
418-
action: string;
419-
icon?: string;
420-
title: string;
421-
}
422-
423416
interface NotificationEventInit extends ExtendableEventInit {
424417
action?: string;
425418
notification: Notification;
426419
}
427420

428421
interface NotificationOptions {
429-
actions?: NotificationAction[];
430422
badge?: string;
431423
body?: string;
432424
data?: any;
433425
dir?: NotificationDirection;
434426
icon?: string;
435-
image?: string;
436427
lang?: string;
437-
renotify?: boolean;
438428
requireInteraction?: boolean;
439429
silent?: boolean | null;
440430
tag?: string;
441-
timestamp?: EpochTimeStamp;
442-
vibrate?: VibratePattern;
443431
}
444432

445433
interface Pbkdf2Params extends Algorithm {
@@ -517,16 +505,21 @@ interface QueuingStrategyInit {
517505

518506
interface RTCEncodedAudioFrameMetadata {
519507
contributingSources?: number[];
508+
payloadType?: number;
509+
sequenceNumber?: number;
520510
synchronizationSource?: number;
521511
}
522512

523513
interface RTCEncodedVideoFrameMetadata {
514+
contributingSources?: number[];
524515
dependencies?: number[];
525516
frameId?: number;
526517
height?: number;
518+
payloadType?: number;
527519
spatialIndex?: number;
528520
synchronizationSource?: number;
529521
temporalIndex?: number;
522+
timestamp?: number;
530523
width?: number;
531524
}
532525

@@ -1664,6 +1657,10 @@ interface CanvasTextDrawingStyles {
16641657
font: string;
16651658
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */
16661659
fontKerning: CanvasFontKerning;
1660+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */
1661+
fontStretch: CanvasFontStretch;
1662+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
1663+
fontVariantCaps: CanvasFontVariantCaps;
16671664
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
16681665
letterSpacing: string;
16691666
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
@@ -2951,8 +2948,6 @@ interface FontFace {
29512948
style: string;
29522949
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */
29532950
unicodeRange: string;
2954-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variant) */
2955-
variant: string;
29562951
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */
29572952
weight: string;
29582953
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */
@@ -4133,6 +4128,8 @@ interface Notification extends EventTarget {
41334128
onerror: ((this: Notification, ev: Event) => any) | null;
41344129
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
41354130
onshow: ((this: Notification, ev: Event) => any) | null;
4131+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */
4132+
readonly requireInteraction: boolean;
41364133
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */
41374134
readonly silent: boolean | null;
41384135
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */
@@ -9308,7 +9305,6 @@ type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame;
93089305
type TimerHandler = string | Function;
93099306
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
93109307
type Uint32List = Uint32Array | GLuint[];
9311-
type VibratePattern = number | number[];
93129308
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
93139309
type AlphaOption = "discard" | "keep";
93149310
type AvcBitstreamFormat = "annexb" | "avc";

inputfiles/addedTypes.jsonc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,32 @@
10301030
"OVR_multiview2": {
10311031
"overrideExposed": "Window Worker"
10321032
},
1033+
// The spec removed `timestamp` but browsers still have it.
1034+
// https://github.com/w3c/webrtc-encoded-transform/pull/204
1035+
"RTCEncodedAudioFrame": {
1036+
"properties": {
1037+
"property": {
1038+
"timestamp": {
1039+
"mdnUrl": "https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp",
1040+
"name": "timestamp",
1041+
"type": "long long",
1042+
"readonly": true
1043+
}
1044+
}
1045+
}
1046+
},
1047+
"RTCEncodedVideoFrame": {
1048+
"properties": {
1049+
"property": {
1050+
"timestamp": {
1051+
"mdnUrl": "https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp",
1052+
"name": "timestamp",
1053+
"type": "long long",
1054+
"readonly": true
1055+
}
1056+
}
1057+
}
1058+
},
10331059
"RTCDTMFSender": {
10341060
"events": {
10351061
"event": [

0 commit comments

Comments
 (0)