tor-browser

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

fedcm-continue-on-disallowed.https.html (1190B)


      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 {fedcm_test,
     13        request_options_with_mediation_required,
     14        select_manifest,
     15        fedcm_get_and_select_first_account} from '../support/fedcm-helper.sub.js';
     16 
     17 fedcm_test(async t => {
     18  // First, do a regular fedcm request so we that we can be considered
     19  // a returning user below.
     20  let options = request_options_with_mediation_required();
     21  await fedcm_get_and_select_first_account(t, options);
     22 
     23  // Now do a silent mediation request.
     24  options = request_options_with_mediation_required('manifest_with_continue_on.json');
     25  options.mediation = 'silent';
     26  await select_manifest(t, options);
     27  const cred_promise = navigator.credentials.get(options);
     28  return promise_rejects_dom(t, 'NetworkError', cred_promise);
     29 }, "continue_on with mediation:silent should fail");
     30 
     31 </script>