tor-browser

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

dedicatedworker-report-only.html (587B)


      1 <!DOCTYPE html>
      2 <script src="/resources/testharness.js"></script>
      3 <script src="/resources/testharnessreport.js"></script>
      4 <!-- Test the 'connect-src' directive on dedicated workers in report-only mode
      5 -->
      6 <script>
      7  let reportCookieName = location.pathname.split('/')[
      8    location.pathname.split('/').length - 1].split('.')[0];
      9  let reportID = document.cookie.split('; ')
     10      .find(cookie => cookie.startsWith(reportCookieName + '='))
     11      .split('=')[1].trim();
     12 
     13  fetch_tests_from_worker(new Worker(
     14    `./support/connect-src-self-report-only.sub.js?id=${reportID}`));
     15 </script>