Skip to content

Commit 936f82c

Browse files
jprinaldisaschanaz
andauthored
Add camera and microphone to PermissionName (microsoft#1872)
Co-authored-by: saschanaz <[email protected]>
1 parent fa39f17 commit 936f82c

9 files changed

+12
-8
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -29426,7 +29426,7 @@ type OverSampleType = "2x" | "4x" | "none";
2942629426
type PanningModelType = "HRTF" | "equalpower";
2942729427
type PaymentComplete = "fail" | "success" | "unknown";
2942829428
type PaymentShippingType = "delivery" | "pickup" | "shipping";
29429-
type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
29429+
type PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
2943029430
type PermissionState = "denied" | "granted" | "prompt";
2943129431
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
2943229432
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
@@ -8708,7 +8708,7 @@ type MediaEncodingType = "record" | "webrtc";
87088708
type NotificationDirection = "auto" | "ltr" | "rtl";
87098709
type NotificationPermission = "default" | "denied" | "granted";
87108710
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
8711-
type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
8711+
type PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
87128712
type PermissionState = "denied" | "granted" | "prompt";
87138713
type PredefinedColorSpace = "display-p3" | "srgb";
87148714
type PremultiplyAlpha = "default" | "none" | "premultiply";

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -8705,7 +8705,7 @@ type MediaEncodingType = "record" | "webrtc";
87058705
type NotificationDirection = "auto" | "ltr" | "rtl";
87068706
type NotificationPermission = "default" | "denied" | "granted";
87078707
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
8708-
type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
8708+
type PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
87098709
type PermissionState = "denied" | "granted" | "prompt";
87108710
type PredefinedColorSpace = "display-p3" | "srgb";
87118711
type PremultiplyAlpha = "default" | "none" | "premultiply";

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -29404,7 +29404,7 @@ type OverSampleType = "2x" | "4x" | "none";
2940429404
type PanningModelType = "HRTF" | "equalpower";
2940529405
type PaymentComplete = "fail" | "success" | "unknown";
2940629406
type PaymentShippingType = "delivery" | "pickup" | "shipping";
29407-
type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
29407+
type PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
2940829408
type PermissionState = "denied" | "granted" | "prompt";
2940929409
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
2941029410
type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -8708,7 +8708,7 @@ type MediaEncodingType = "record" | "webrtc";
87088708
type NotificationDirection = "auto" | "ltr" | "rtl";
87098709
type NotificationPermission = "default" | "denied" | "granted";
87108710
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
8711-
type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
8711+
type PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
87128712
type PermissionState = "denied" | "granted" | "prompt";
87138713
type PredefinedColorSpace = "display-p3" | "srgb";
87148714
type PremultiplyAlpha = "default" | "none" | "premultiply";

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -8705,7 +8705,7 @@ type MediaEncodingType = "record" | "webrtc";
87058705
type NotificationDirection = "auto" | "ltr" | "rtl";
87068706
type NotificationPermission = "default" | "denied" | "granted";
87078707
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
8708-
type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
8708+
type PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
87098709
type PermissionState = "denied" | "granted" | "prompt";
87108710
type PredefinedColorSpace = "display-p3" | "srgb";
87118711
type PremultiplyAlpha = "default" | "none" | "premultiply";

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9837,7 +9837,7 @@ type NotificationDirection = "auto" | "ltr" | "rtl";
98379837
type NotificationPermission = "default" | "denied" | "granted";
98389838
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
98399839
type OpusBitstreamFormat = "ogg" | "opus";
9840-
type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
9840+
type PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
98419841
type PermissionState = "denied" | "granted" | "prompt";
98429842
type PredefinedColorSpace = "display-p3" | "srgb";
98439843
type PremultiplyAlpha = "default" | "none" | "premultiply";

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9837,7 +9837,7 @@ type NotificationDirection = "auto" | "ltr" | "rtl";
98379837
type NotificationPermission = "default" | "denied" | "granted";
98389838
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
98399839
type OpusBitstreamFormat = "ogg" | "opus";
9840-
type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
9840+
type PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
98419841
type PermissionState = "denied" | "granted" | "prompt";
98429842
type PredefinedColorSpace = "display-p3" | "srgb";
98439843
type PremultiplyAlpha = "default" | "none" | "premultiply";

Diff for: inputfiles/addedTypes.jsonc

+4
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,12 @@
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+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API#browser_compatibility
342+
"camera",
341343
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API#browser_compatibility
342344
"geolocation",
345+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API#browser_compatibility
346+
"microphone",
343347
// Gecko and Blink: https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API#browser_compatibility
344348
"midi",
345349
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API#browser_compatibility

0 commit comments

Comments
 (0)