| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 sequence<USVString> providers; | 60 sequence<USVString> providers; |
| 61 sequence<DOMString> protocols; | 61 sequence<DOMString> protocols; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 </script> | 64 </script> |
| 65 <script type="text/plain" id="tested"> | 65 <script type="text/plain" id="tested"> |
| 66 interface CredentialsContainer { | 66 interface CredentialsContainer { |
| 67 Promise<Credential> get(optional CredentialRequestOptions options); | 67 Promise<Credential> get(optional CredentialRequestOptions options); |
| 68 Promise<Credential> store(Credential credential); | 68 Promise<Credential> store(Credential credential); |
| 69 Promise<Credential?> create(optional CredentialCreationOptions options); | 69 Promise<Credential?> create(optional CredentialCreationOptions options); |
| 70 Promise<void> requireUserMediation(); | 70 Promise<void> preventSilentAccess(); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 [Constructor(PasswordCredentialData data), | 73 [Constructor(PasswordCredentialData data), |
| 74 Constructor(HTMLFormElement form), | 74 Constructor(HTMLFormElement form), |
| 75 Exposed=Window, | 75 Exposed=Window, |
| 76 SecureContext] | 76 SecureContext] |
| 77 interface PasswordCredential : Credential { | 77 interface PasswordCredential : Credential { |
| 78 readonly attribute DOMString password; | 78 readonly attribute DOMString password; |
| 79 }; | 79 }; |
| 80 PasswordCredential implements CredentialUserData; | 80 PasswordCredential implements CredentialUserData; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 94 idl_array.add_untested_idls(document.querySelector('#untested').textContent)
; | 94 idl_array.add_untested_idls(document.querySelector('#untested').textContent)
; |
| 95 idl_array.add_idls(document.querySelector('#tested').textContent); | 95 idl_array.add_idls(document.querySelector('#tested').textContent); |
| 96 idl_array.add_objects({ | 96 idl_array.add_objects({ |
| 97 CredentialsContainer: ['navigator.credentials'], | 97 CredentialsContainer: ['navigator.credentials'], |
| 98 PasswordCredential: ['new PasswordCredential({ id: "id", password: "pencil
", iconURL: "https://example.com/", name: "name" })'], | 98 PasswordCredential: ['new PasswordCredential({ id: "id", password: "pencil
", iconURL: "https://example.com/", name: "name" })'], |
| 99 FederatedCredential: ['new FederatedCredential({ id: "id", provider: "http
s://example.com", iconURL: "https://example.com/", name: "name" })'] | 99 FederatedCredential: ['new FederatedCredential({ id: "id", provider: "http
s://example.com", iconURL: "https://example.com/", name: "name" })'] |
| 100 }); | 100 }); |
| 101 idl_array.test(); | 101 idl_array.test(); |
| 102 </script> | 102 </script> |
| 103 | 103 |
| OLD | NEW |