-
Notifications
You must be signed in to change notification settings - Fork 177
Description
https://github.com/web-platform-dx/web-features/blob/5f3d1e80a508b8ba0ec1e240f0ce4bc4acf7dbfd/features/magnetometer.yml.dist doesn't make sense, it is meaningless to say that <iframe allow="magnetometer">
or Permissions-Policy
for the feature is supported when the feature itself isn't. Those code paths, even if active in the browser, wouldn't end up doing anything observable.
https://caniuse.com/magnetometer claims the whole feature is supported since Chrome 67, but I don't believe that.
In Chromium the features is controlled by a flag which is off by default:
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/runtime_enabled_features.json5;l=3940-3943;drc=bdbfc851687b28b24b80bccbc4c027bfe05a701b
Testing on Chrome on macOS, the Magnetometer
interface isn't exposed.
@anssiko @riju as editors of the spec, can you say something about the situation? Is the Magnetometer API enabled by default on some platform?
BCD, caniuse.com and web-features need updating to align on whatever the correct state is.