Skip to content

Commit 4d12d8a

Browse files
authored
Add midi and storage-access to PermissionName (microsoft#1765)
Co-authored-by: saschanaz <[email protected]>
1 parent 7372de8 commit 4d12d8a

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

Diff for: baselines/dom.generated.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28143,7 +28143,7 @@ type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
2814328143
type OverSampleType = "2x" | "4x" | "none";
2814428144
type PanningModelType = "HRTF" | "equalpower";
2814528145
type PaymentComplete = "fail" | "success" | "unknown";
28146-
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
28146+
type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
2814728147
type PermissionState = "denied" | "granted" | "prompt";
2814828148
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
2814928149
type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";

Diff for: baselines/serviceworker.generated.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8646,7 +8646,7 @@ type MediaEncodingType = "record" | "webrtc";
86468646
type NotificationDirection = "auto" | "ltr" | "rtl";
86478647
type NotificationPermission = "default" | "denied" | "granted";
86488648
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
8649-
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
8649+
type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
86508650
type PermissionState = "denied" | "granted" | "prompt";
86518651
type PredefinedColorSpace = "display-p3" | "srgb";
86528652
type PremultiplyAlpha = "default" | "none" | "premultiply";

Diff for: baselines/sharedworker.generated.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8647,7 +8647,7 @@ type MediaEncodingType = "record" | "webrtc";
86478647
type NotificationDirection = "auto" | "ltr" | "rtl";
86488648
type NotificationPermission = "default" | "denied" | "granted";
86498649
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
8650-
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
8650+
type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
86518651
type PermissionState = "denied" | "granted" | "prompt";
86528652
type PredefinedColorSpace = "display-p3" | "srgb";
86538653
type PremultiplyAlpha = "default" | "none" | "premultiply";

Diff for: baselines/webworker.generated.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9415,7 +9415,7 @@ type MediaEncodingType = "record" | "webrtc";
94159415
type NotificationDirection = "auto" | "ltr" | "rtl";
94169416
type NotificationPermission = "default" | "denied" | "granted";
94179417
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
9418-
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
9418+
type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
94199419
type PermissionState = "denied" | "granted" | "prompt";
94209420
type PredefinedColorSpace = "display-p3" | "srgb";
94219421
type PremultiplyAlpha = "default" | "none" | "premultiply";

Diff for: inputfiles/addedTypes.jsonc

+9-8
Original file line numberDiff line numberDiff line change
@@ -338,19 +338,20 @@
338338
// https://w3c.github.io/powerful-features-registry/#registry-table-of-powerful-features
339339
// Please add a feature only when it's supported by multiple engines.
340340
"value": [
341-
// https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API#browser_compatibility
341+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API#browser_compatibility
342342
"geolocation",
343-
// https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API#browser_compatibility
343+
// Gecko and Blink: https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API#browser_compatibility
344+
"midi",
345+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API#browser_compatibility
344346
"notifications",
345-
// https://developer.mozilla.org/en-US/docs/Web/API/Storage_API#browser_compatibility
347+
// Gecko and Blink: https://developer.mozilla.org/en-US/docs/Web/API/Storage_API#browser_compatibility
346348
"persistent-storage",
347-
// https://developer.mozilla.org/en-US/docs/Web/API/Push_API#browser_compatibility
349+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Push_API#browser_compatibility
348350
"push",
349-
// https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API#browser_compatibility
351+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API#browser_compatibility
350352
"screen-wake-lock",
351-
// WebXR is also actually Blink-only
352-
// https://developer.mozilla.org/en-US/docs/Web/API/WebXR_Device_API#browser_compatibility
353-
"xr-spatial-tracking"
353+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility
354+
"storage-access"
354355
]
355356
},
356357
"AutoFillBase": {

0 commit comments

Comments
 (0)