tor-browser

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

fedcm-cross-origin-policy.https.html (791B)


      1 <!DOCTYPE html>
      2 <title>Federated Credential Management API Cross-Origin-Embedder-Policy 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        fedcm_get_and_select_first_account} from './support/fedcm-helper.sub.js';
     15 
     16 fedcm_test(async t => {
     17  const cred = await fedcm_get_and_select_first_account(t, request_options_with_mediation_required());
     18  assert_equals(cred.token, 'token');
     19 }, 'Test that COEP policy do not apply to FedCM requests');
     20 
     21 </script>