tor-browser

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

permissions-policy-compute-pressure.html (342B)


      1 <!DOCTYPE html>
      2 <script>
      3 'use strict';
      4 
      5 window.onload = async function() {
      6  let enabled = true;
      7  try {
      8    const observer = new PressureObserver(() => {});
      9    await observer.observe("cpu");
     10    observer.disconnect();
     11  } catch (e) {
     12    enabled = false;
     13  }
     14  parent.postMessage({ type: 'availability-result', enabled }, '*');
     15 }
     16 </script>