tor-browser

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

fedcm-multi-idp-abort.https.html (904B)


      1 <!DOCTYPE html>
      2 <title>Federated Credential Management API multi IDP abort.</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 <script type="module">
     10 import {request_options_with_two_idps,
     11        fedcm_test,
     12        fedcm_get_and_select_first_account} from '../support/fedcm-helper.sub.js';
     13 
     14 fedcm_test(async t => {
     15  let controller = new AbortController();
     16  let test_options = request_options_with_two_idps();
     17  test_options.signal = controller.signal;
     18  const cred = fedcm_get_and_select_first_account(t, test_options);
     19  controller.abort();
     20  return promise_rejects_dom(t, 'AbortError', cred);
     21 }, "Test that the abort signal works when multiple IDPs are used.");
     22 </script>