tor-browser

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

MediaDevices-SecureContext.html (643B)


      1 <!doctype html>
      2 <html>
      3 <head>
      4 <title>MediaDevices and SecureContext</title>
      5 <script src=/resources/testharness.js></script>
      6 <script src=/resources/testharnessreport.js></script>
      7 </head>
      8 <body>
      9 <script>
     10 test(function() {
     11  assert_false(window.isSecureContext, "This test must be run in a non secure context");
     12  assert_false('MediaDevices' in window, "MediaDevices is not exposed");
     13  assert_false('MediaDeviceInfo' in window, "MediaDeviceInfo is not exposed");
     14  assert_false('getUserMedia' in navigator, "getUserMedia is not exposed");
     15  assert_false('mediaDevices' in navigator, "mediaDevices is not exposed");
     16 });
     17 </script>
     18 </body>
     19 </html>