Google Chrome allows websites to access and use mobile or desktop computer’s motion and light sensors by default and the browser now offers an option in the Settings to let the user block the access to sensors for all websites or per site wise.
Chromium developers added a new entry for Sensors to settings in Chrome browser and is enabled by default in Canary, you can notice this if you visit chrome://settings/content/sensors page.

Chrome Allows websites to use motion and light sensors
If a site or web app is accessing your device’s light or motion sensors, Chrome shows an indicator in the Omnibox with a message (on hover over) “This page is using motion or light sensors” and lets you allow that site from accessing sensor forever or block it.


While per-site whitelisting or blocking is possible in desktop, it’s not in android where you can only change permissions for all sites, according to the bug this is intentional.

For the uninitiated, Chrome already supports Generic Sensor API since version 67. Chromium team targeting this for Chrome 75 and the priority has been set to 1. You’ll find the Sensor menu item on in Page info dialog, content settings, and site settings as well.
Related articles:
Finally, Chrome to allow users to see Extension Activity
Know All Permissions Given to Installed Chrome Extensions
4 Comments