| 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 25 matching lines...) Expand all Loading... |
| 36 USVString iconURL; | 36 USVString iconURL; |
| 37 required USVString provider; | 37 required USVString provider; |
| 38 DOMString protocol; | 38 DOMString protocol; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 dictionary CredentialCreationOptions { | 41 dictionary CredentialCreationOptions { |
| 42 PasswordCredentialInit? password; | 42 PasswordCredentialInit? password; |
| 43 FederatedCredentialInit? federated; | 43 FederatedCredentialInit? federated; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 enum CredentialMediationRequirement { |
| 47 "silent", |
| 48 "optional", |
| 49 "required" |
| 50 }; |
| 51 |
| 46 dictionary CredentialRequestOptions { | 52 dictionary CredentialRequestOptions { |
| 47 boolean password = false; | 53 boolean password = false; |
| 48 FederatedCredentialRequestOptions federated; | 54 FederatedCredentialRequestOptions federated; |
| 49 | 55 |
| 50 boolean unmediated = false; | 56 CredentialMediationRequirement mediation = "optional"; |
| 51 }; | 57 }; |
| 52 | 58 |
| 53 dictionary FederatedCredentialRequestOptions { | 59 dictionary FederatedCredentialRequestOptions { |
| 54 sequence<USVString> providers; | 60 sequence<USVString> providers; |
| 55 sequence<DOMString> protocols; | 61 sequence<DOMString> protocols; |
| 56 }; | 62 }; |
| 57 | 63 |
| 58 </script> | 64 </script> |
| 59 <script type="text/plain" id="tested"> | 65 <script type="text/plain" id="tested"> |
| 60 interface CredentialsContainer { | 66 interface CredentialsContainer { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 91 idl_array.add_untested_idls(document.querySelector('#untested').textContent)
; | 97 idl_array.add_untested_idls(document.querySelector('#untested').textContent)
; |
| 92 idl_array.add_idls(document.querySelector('#tested').textContent); | 98 idl_array.add_idls(document.querySelector('#tested').textContent); |
| 93 idl_array.add_objects({ | 99 idl_array.add_objects({ |
| 94 CredentialsContainer: ['navigator.credentials'], | 100 CredentialsContainer: ['navigator.credentials'], |
| 95 PasswordCredential: ['new PasswordCredential({ id: "id", password: "pencil
", iconURL: "https://example.com/", name: "name" })'], | 101 PasswordCredential: ['new PasswordCredential({ id: "id", password: "pencil
", iconURL: "https://example.com/", name: "name" })'], |
| 96 FederatedCredential: ['new FederatedCredential({ id: "id", provider: "http
s://example.com", iconURL: "https://example.com/", name: "name" })'] | 102 FederatedCredential: ['new FederatedCredential({ id: "id", provider: "http
s://example.com", iconURL: "https://example.com/", name: "name" })'] |
| 97 }); | 103 }); |
| 98 idl_array.test(); | 104 idl_array.test(); |
| 99 </script> | 105 </script> |
| 100 | 106 |
| OLD | NEW |