| 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=/w3c/resources/WebIDLParser.js></script> | 4 <script src=/w3c/resources/WebIDLParser.js></script> |
| 5 <script src=/w3c/resources/idlharness.js></script> | 5 <script src=/w3c/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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 dictionary FederatedCredentialRequestOptions { | 45 dictionary FederatedCredentialRequestOptions { |
| 46 sequence<USVString> providers; | 46 sequence<USVString> providers; |
| 47 sequence<DOMString> protocols; | 47 sequence<DOMString> protocols; |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 </script> | 50 </script> |
| 51 <script type="text/plain" id="tested"> | 51 <script type="text/plain" id="tested"> |
| 52 interface CredentialsContainer { | 52 interface CredentialsContainer { |
| 53 Promise<Credential?> get(CredentialRequestOptions options); | 53 Promise<Credential> get(optional CredentialRequestOptions options); |
| 54 Promise<Credential> store(Credential credential); | 54 Promise<Credential> store(Credential credential); |
| 55 Promise<void> requireUserMediation(); | 55 Promise<void> requireUserMediation(); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 [Constructor(PasswordCredentialData data), | 58 [Constructor(PasswordCredentialData data), |
| 59 Constructor(HTMLFormElement form), | 59 Constructor(HTMLFormElement form), |
| 60 Exposed=Window] | 60 Exposed=Window] |
| 61 interface PasswordCredential : SiteBoundCredential { | 61 interface PasswordCredential : SiteBoundCredential { |
| 62 attribute USVString idName; | 62 attribute USVString idName; |
| 63 attribute USVString passwordName; | 63 attribute USVString passwordName; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 77 idl_array.add_untested_idls(document.querySelector('#untested').textContent)
; | 77 idl_array.add_untested_idls(document.querySelector('#untested').textContent)
; |
| 78 idl_array.add_idls(document.querySelector('#tested').textContent); | 78 idl_array.add_idls(document.querySelector('#tested').textContent); |
| 79 idl_array.add_objects({ | 79 idl_array.add_objects({ |
| 80 CredentialsContainer: ['navigator.credentials'], | 80 CredentialsContainer: ['navigator.credentials'], |
| 81 PasswordCredential: ['new PasswordCredential({ id: "id", password: "pencil
", iconURL: "https://example.com/", name: "name" })'], | 81 PasswordCredential: ['new PasswordCredential({ id: "id", password: "pencil
", iconURL: "https://example.com/", name: "name" })'], |
| 82 FederatedCredential: ['new FederatedCredential({ id: "id", provider: "http
s://example.com", iconURL: "https://example.com/", name: "name" })'] | 82 FederatedCredential: ['new FederatedCredential({ id: "id", provider: "http
s://example.com", iconURL: "https://example.com/", name: "name" })'] |
| 83 }); | 83 }); |
| 84 idl_array.test(); | 84 idl_array.test(); |
| 85 </script> | 85 </script> |
| 86 | 86 |
| OLD | NEW |