tor-browser

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

fedcm-csp.https.html (763B)


      1 <!DOCTYPE html>
      2 <title>Federated Credential Management API network request tests.</title>
      3 <link rel="help" href="https://fedidcg.github.io/FedCM">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="/resources/testdriver.js"></script>
      7 <script src="/resources/testdriver-vendor.js"></script>
      8 
      9 <body>
     10 
     11 <script type="module">
     12 import {request_options_with_mediation_required,
     13        fedcm_test,
     14        set_fedcm_cookie} from './support/fedcm-helper.sub.js';
     15 
     16 fedcm_test(async t => {
     17  const cred = navigator.credentials.get(request_options_with_mediation_required());
     18  return promise_rejects_dom(t, "NetworkError", cred);
     19 }, "Provider configURL should honor Content-Security-Policy.");
     20 
     21 </script>