tor-browser

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

permissions-policy-picture-in-picture.html (339B)


      1 <script src=/common/media.js></script>
      2 <script src=/permissions-policy/resources/picture-in-picture.js></script>
      3 <script>
      4 'use strict';
      5 
      6 window.addEventListener('load', () => {
      7  isPictureInPictureAllowed().then(enabled => {
      8    window.parent.postMessage({ type: 'availability-result', enabled }, '*');
      9  });
     10 }, { once: true });
     11 </script>