tor-browser

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

sync-xhr-supported-by-feature-policy.html (537B)


      1 <!DOCTYPE html>
      2 <title>Test that sync-xhr is advertised in the feature list</title>
      3 <link rel="help" href="https://w3c.github.io/webappsec-feature-policy/#dom-featurepolicy-features">
      4 <link rel="help" href="https://xhr.spec.whatwg.org/#feature-policy-integration">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <script>
      8 test(() => {
      9    assert_in_array('sync-xhr', document.featurePolicy.features());
     10 }, 'document.featurePolicy.features should advertise sync-xhr.');
     11 </script>