tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Magnetometer-supported-by-feature-policy.html (543B)


      1 <!DOCTYPE html>
      2 <title>Test that magnetometer is advertised in the feature list</title>
      3 <link rel="help" href="https://w3c.github.io/webappsec-feature-policy/#dom-featurepolicy-features">
      4 <link rel="help" href="https://w3c.github.io/sensors/#feature-policy-api">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <script>
      8 test(() => {
      9    assert_in_array('magnetometer', document.featurePolicy.features());
     10 }, 'document.featurePolicy.features should advertise magnetometer.');
     11 </script>