tor-browser

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

fedcm-domainhint-matches-account.https.html (803B)


      1 <!DOCTYPE html>
      2 <title>Federated Credential Management API domain hint matches an account.</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 <body>
      9 
     10 <script type="module">
     11 import {
     12  fedcm_test,
     13  request_options_with_domain_hint,
     14  fedcm_get_and_select_first_account
     15 } from './support/fedcm-helper.sub.js';
     16 
     17 fedcm_test(async t => {
     18  const options = request_options_with_domain_hint('manifest.py',
     19    'idp.example');
     20  const cred = await fedcm_get_and_select_first_account(t, options);
     21  assert_equals(cred.token, 'token');
     22 }, "Domain hint matches an account.");
     23  </script>