tor-browser

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

fedcm-too-many-disconnect-calls.https.html (1134B)


      1 <!DOCTYPE html>
      2 <title>Federated Credential Management API two disconnect() at the same time.</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        fedcm_get_and_select_first_account,
     14        manifest_origin,
     15        request_options_with_mediation_required,
     16        disconnect_options} from './support/fedcm-helper.sub.js';
     17 
     18 fedcm_test(async t => {
     19  // Get at least one connected account that can be disconnected.
     20  const cred = await fedcm_get_and_select_first_account(t, request_options_with_mediation_required());
     21  const manifest = `${manifest_origin}/\
     22 fedcm/support/manifest.py`;
     23  const options = disconnect_options("1234");
     24  IdentityCredential.disconnect(options);
     25  await promise_rejects_dom(t, 'NetworkError', IdentityCredential.disconnect(options));
     26 }, "When disconnect is called while there is a pending one, it is rejected.");
     27 </script>