| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src=/resources/testharness.js></script> | 2 <script src=/resources/testharness.js></script> |
| 3 <script src=/resources/testharnessreport.js></script> | 3 <script src=/resources/testharnessreport.js></script> |
| 4 <script src=/resources/WebIDLParser.js></script> | 4 <script src=/resources/WebIDLParser.js></script> |
| 5 <script src=/resources/idlharness.js></script> | 5 <script src=/resources/idlharness.js></script> |
| 6 <script type="text/plain" id="untested"> | 6 <script type="text/plain" id="untested"> |
| 7 dictionary CredentialData { | 7 dictionary CredentialData { |
| 8 USVString id; | 8 USVString id; |
| 9 }; | 9 }; |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 typedef (FormData or URLSearchParams) CredentialBodyType; | 29 typedef (FormData or URLSearchParams) CredentialBodyType; |
| 30 | 30 |
| 31 | 31 |
| 32 dictionary FederatedCredentialInit : CredentialData { | 32 dictionary FederatedCredentialInit : CredentialData { |
| 33 USVString name; | 33 USVString name; |
| 34 USVString iconURL; | 34 USVString iconURL; |
| 35 required USVString provider; | 35 required USVString provider; |
| 36 DOMString protocol; | 36 DOMString protocol; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 enum CredentialMediationRequirement { |
| 40 "silent", |
| 41 "optional", |
| 42 "required" |
| 43 }; |
| 44 |
| 39 dictionary CredentialRequestOptions { | 45 dictionary CredentialRequestOptions { |
| 40 boolean password = false; | 46 boolean password = false; |
| 41 FederatedCredentialRequestOptions federated; | 47 FederatedCredentialRequestOptions federated; |
| 42 | 48 |
| 43 boolean unmediated = false; | 49 CredentialMediationRequirement mediation = "optional"; |
| 44 }; | 50 }; |
| 45 | 51 |
| 46 dictionary FederatedCredentialRequestOptions { | 52 dictionary FederatedCredentialRequestOptions { |
| 47 sequence<USVString> providers; | 53 sequence<USVString> providers; |
| 48 sequence<DOMString> protocols; | 54 sequence<DOMString> protocols; |
| 49 }; | 55 }; |
| 50 | 56 |
| 51 </script> | 57 </script> |
| 52 <script type="text/plain" id="tested"> | 58 <script type="text/plain" id="tested"> |
| 53 interface CredentialsContainer { | 59 interface CredentialsContainer { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 83 idl_array.add_untested_idls(document.querySelector('#untested').textContent)
; | 89 idl_array.add_untested_idls(document.querySelector('#untested').textContent)
; |
| 84 idl_array.add_idls(document.querySelector('#tested').textContent); | 90 idl_array.add_idls(document.querySelector('#tested').textContent); |
| 85 idl_array.add_objects({ | 91 idl_array.add_objects({ |
| 86 CredentialsContainer: ['navigator.credentials'], | 92 CredentialsContainer: ['navigator.credentials'], |
| 87 PasswordCredential: ['new PasswordCredential({ id: "id", password: "pencil
", iconURL: "https://example.com/", name: "name" })'], | 93 PasswordCredential: ['new PasswordCredential({ id: "id", password: "pencil
", iconURL: "https://example.com/", name: "name" })'], |
| 88 FederatedCredential: ['new FederatedCredential({ id: "id", provider: "http
s://example.com", iconURL: "https://example.com/", name: "name" })'] | 94 FederatedCredential: ['new FederatedCredential({ id: "id", provider: "http
s://example.com", iconURL: "https://example.com/", name: "name" })'] |
| 89 }); | 95 }); |
| 90 idl_array.test(); | 96 idl_array.test(); |
| 91 </script> | 97 </script> |
| 92 | 98 |
| OLD | NEW |