tor-browser

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

fedcm-domainhint-any.https.html (938B)


      1 <!DOCTYPE html>
      2 <title>Federated Credential Management API domain hint 'any' matches an account with any domain hint</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  select_manifest,
     15  fedcm_get_and_select_first_account
     16 } from './support/fedcm-helper.sub.js';
     17 
     18 fedcm_test(async t => {
     19  let options = request_options_with_domain_hint(
     20    'manifest_with_two_accounts.json', 'any');
     21  await select_manifest(t, options);
     22 
     23  const cred = await fedcm_get_and_select_first_account(t, options);
     24  assert_equals(cred.token, 'account_id=john_doe');
     25 }, "Domain hint 'any' matches an account with any domain hint.");
     26  </script>