tor-browser

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

feature-policy-frame-policy-timing-iframe-camera.https.sub.html (394B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <script>
      4 var id = (new URLSearchParams(window.location.search)).get('id');
      5 window.onmessage = m => {
      6  navigator.mediaDevices.getUserMedia({video: true})
      7    .then(() => 'ok')
      8    .catch(e => e.name)
      9    .then(r => {
     10      window.parent.postMessage({id: id, result: r}, '*');
     11    });
     12 }
     13 window.parent.postMessage({id: id, result: 'ready'}, '*');
     14 </script>