tor-browser

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

historical.https.html (1172B)


      1 <!doctype html>
      2 <title>Historical Media Capture and Streams features</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <div id="log"></div>
      6 <script>
      7 test(function() {
      8  assert_false("webkitMediaStream" in window);
      9 }, "webkitMediaStream interface should not exist");
     10 
     11 test(function() {
     12  assert_false("getUserMedia" in navigator);
     13 }, "navigator.getUserMedia should not exist");
     14 
     15 test(function() {
     16  assert_false("webkitGetUserMedia" in navigator);
     17 }, "navigator.webkitGetUserMedia should not exist");
     18 
     19 test(function() {
     20  assert_false("mozGetUserMedia" in navigator);
     21 }, "navigator.mozGetUserMedia should not exist");
     22 
     23 test(() => {
     24  const mediaStream = new MediaStream();
     25  assert_throws_js(TypeError, () => URL.createObjectURL(mediaStream));
     26 }, "Passing MediaStream to URL.createObjectURL() should throw");
     27 
     28 test(() => {
     29  const mediaStream = new MediaStream();
     30  assert_false("onactive" in mediaStream);
     31 }, "MediaStream.onactive should not exist");
     32 
     33 test(() => {
     34  const mediaStream = new MediaStream();
     35  assert_false("oninactive" in mediaStream);
     36 }, "MediaStream.oninactive should not exist");
     37 </script>