tor-browser

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

fedcm-no-registered-idps.https.html (720B)


      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 promise_test(async t => {
     13  const cred = navigator.credentials.get({
     14    identity: {
     15      providers: [{
     16        configURL: "any",
     17        clientId: "na",
     18        nonce: "1"
     19      }]
     20    }
     21  });
     22  return promise_rejects_dom(t, 'NetworkError', cred);
     23 }, "When no providers are registered an error should be returned.");
     24 
     25 </script>