tor-browser

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

permissions-policy-local-fonts.html (494B)


      1 <script src="/resources/testdriver.js"></script>
      2 <script src="/resources/testdriver-vendor.js"></script>
      3 <script>
      4 'use strict';
      5 
      6 test_driver.set_test_context(parent);
      7 
      8 window.onload = async function() {
      9  try {
     10    await test_driver.bless('enable local font queries');
     11    await self.queryLocalFonts();
     12    parent.postMessage({ type: 'availability-result', enabled: true }, '*');
     13  } catch (error) {
     14    parent.postMessage({ type: 'availability-result', enabled: false }, '*');
     15  }
     16 }
     17 </script>