tor-browser

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

select-url-permissions-policy-helper.html (601B)


      1 <!doctype html>
      2 <body>
      3  <script src="/resources/testharness.js"></script>
      4  <script src="/resources/testharnessreport.js"></script>
      5  <script src="/shared-storage/resources/util.js"></script>
      6  <script>
      7  'use strict';
      8 
      9  window.onload = async function() {
     10    await sharedStorage.worklet.addModule('/shared-storage/resources/simple-module.js');
     11 
     12    if (await IsSharedStorageSelectUrlAllowed()) {
     13      parent.postMessage({ type: 'availability-result', enabled: true }, '*');
     14      return;
     15    }
     16 
     17    parent.postMessage({ type: 'availability-result', enabled: false }, '*');
     18  }
     19  </script>
     20 </body>