tor-browser

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

MediaStream-supported-by-feature-policy.html (711B)


      1 <!DOCTYPE html>
      2 <title>Test that camera and microphone are 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/mediacapture-main/#feature-policy-integration">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <script>
      8 test(() => {
      9    assert_in_array('camera', document.featurePolicy.features());
     10 }, 'document.featurePolicy.features should advertise camera.');
     11 
     12 test(() => {
     13    assert_in_array('microphone', document.featurePolicy.features());
     14 }, 'document.featurePolicy.features should advertise microphone.');
     15 </script>