tor-browser

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

fedcm-store.https.html (844B)


      1 <!DOCTYPE html>
      2 <title>Federated Credential Management API store() 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 <script type="module">
     10 import {fedcm_test,
     11        request_options_with_mediation_required,
     12        fedcm_get_and_select_first_account} from "./support/fedcm-helper.sub.js";
     13 
     14 fedcm_test(async t => {
     15  const cred = await fedcm_get_and_select_first_account(t, request_options_with_mediation_required());
     16  return promise_rejects_dom(t, "NotSupportedError", navigator.credentials.store(cred));
     17 }, "navigator.credentials.store() with an identity credential returns NotSupportedError");
     18 
     19 </script>