From 399ad37ed74217823136b8125a739a5a2d15b825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20Poduszl=C3=B3?= Date: Sat, 24 Aug 2019 10:29:59 +0200 Subject: [PATCH 1/2] Allow requesting permission for device orientation iOS Safari 13 Beta 6 has shipped with permission API for DeviceMotionEvent and DeviceOrientationEvent, see: https://developer.apple.com/documentation/safari_release_notes/safari_13_beta_6_release_notes#3314664 --- inputfiles/removedTypes.json | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/inputfiles/removedTypes.json b/inputfiles/removedTypes.json index 621f315cb..63d14f708 100644 --- a/inputfiles/removedTypes.json +++ b/inputfiles/removedTypes.json @@ -89,20 +89,6 @@ } } }, - "DeviceMotionEvent": { - "methods": { - "method": { - "requestPermission": null - } - } - }, - "DeviceOrientationEvent": { - "methods": { - "method": { - "requestPermission": null - } - } - }, "FederatedCredential": null, "HTMLAreasCollection": null, "HTMLBodyElement": { From 98e459fa6244f36ae95f6efe9766a904ad2ed581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20Poduszl=C3=B3?= Date: Sat, 24 Aug 2019 10:36:01 +0200 Subject: [PATCH 2/2] Update generated d.ts file --- baselines/dom.generated.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index e29445f74..465c5a454 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -4381,6 +4381,7 @@ interface DeviceMotionEvent extends Event { declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; + requestPermission(): Promise; }; interface DeviceMotionEventAcceleration { @@ -4406,6 +4407,7 @@ interface DeviceOrientationEvent extends Event { declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; + requestPermission(): Promise; }; /** Provides information about the rate at which the device is rotating around all three axes. */