← Back to release summary

Feature Policy: control over Device Orientation API

Category
Device
Type
New or changed feature
Status
Enabled by default (Chrome 66)
Intent stage
None

Summary

The sensor policy-controlled features are used to control access to a device sensors requested through an event specified in the DeviceOrientation Event Specification. By default, the deviceorientation, deviceorientationabsolute and devicemotion events will be restricted to top-level document and same-origin subframes (it follows from features default allow list 'self'). The default behavior can be modified by explicitly enabling or disabling of the dedicated sensor policy-controlled features.

Standards & signals

Docs: https://github.com/WICG/feature-policy/blob/gh-pages/features.md#sensor-features https://w3c.github.io/sensors/#feature-policy-api

View on chromestatus.com