diff --git a/index.bs b/index.bs index d7ef951..b41dbd8 100644 --- a/index.bs +++ b/index.bs @@ -213,6 +213,24 @@ The rotation rate measures the rate at which the device rotates about Note: [[MOTION-SENSORS]] and [[GYROSCOPE]] both contain a more detailed discussion of gyroscopes, rotation rates and measurements. +Permissions Policy integration {#permissions-policy-integration} +============================== + +This specification defines the following policy-controlled features: + + - "accelerometer", whose default allowlist is "self". + - "gyroscope", whose default allowlist is "self". + - "magnetometer", whose default allowlist is "self". + +
+Note: Usage of the policy-controlled features above by this specification is as follows: + + - The deviceorientation event requires the "accelerometer" and "gyroscope" features when providing relative orientation data. For the implementation to fall back to absolute orientation data, the "magnetometer" feature is also used. + - The deviceorientationabsolute event requires the "accelerometer", "gyroscope" and "magnetometer" feature. + - The devicemotion event requires the "accelerometer" and "gyroscope". + +
+ Permissions API integration {#permissions-api-integration} =========================== @@ -331,8 +349,13 @@ Whenever a significant change in orientation occurs, the user agent must 1. If the implementation cannot provide relative orientation or the resulting absolute orientation data is more accurate: 1. Let absolute be true. + 1. Let policies be « "accelerometer", "gyroscope", "magnetometer" ». 1. Otherwise: 1. Let absolute be false. + 1. Let policies be « "accelerometer", "gyroscope" ». + 1. Let document be window's associated Document. + 1. For each policy of policies: + 1. If document is not allowed to use the policy-controlled feature named policy, return. 1. Invoke fire an orientation event with deviceorientation, window, and absolute. @@ -503,6 +526,9 @@ The requestPermission() method steps a
At an implementation-defined interval interval, the user agent must execute the following steps on a navigable's active window window: + 1. Let document be window's associated Document. + 1. For each policy of « "accelerometer", "gyroscope" »: + 1. If document is not allowed to use the policy-controlled feature named policy, return. 1. Let acceleration be null. 1. Let accelerationIncludingGravity be null. 1. Let rotationRate be null.