fedcm-too-many-idps.https.html (935B)
1 <!DOCTYPE html> 2 <title>Federated Credential Management API: too many IDPs requested.</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 manifest_origin, 14 default_manifest_path} from '../support/fedcm-helper.sub.js'; 15 16 fedcm_test(async t => { 17 let providers = []; 18 for (let i = 0; i < 11; i++) { 19 providers.push({ 20 configURL: `${manifest_origin}${default_manifest_path}?i=${i}`, 21 clientId: '1', 22 nonce: '2' 23 }); 24 } 25 return promise_rejects_js(t, TypeError, navigator.credentials.get({ 26 identity: { 27 providers: providers, 28 } 29 })); 30 }, "Multi IDP FedCM call fails when too many IDPs are requested."); 31 32 </script>