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 |
11 [Exposed=Window, SecureContext] | 11 [Exposed=Window, SecureContext] |
12 interface Credential { | 12 interface Credential { |
13 readonly attribute USVString id; | 13 readonly attribute USVString id; |
14 readonly attribute DOMString type; | 14 readonly attribute DOMString type; |
15 }; | 15 }; |
16 | 16 |
17 dictionary SiteBoundCredentialData : CredentialData { | |
18 USVString name; | |
19 USVString iconURL; | |
20 }; | |
21 | |
22 [NoInterfaceObject, SecureContext] | 17 [NoInterfaceObject, SecureContext] |
23 interface CredentialUserData { | 18 interface CredentialUserData { |
24 readonly attribute USVString name; | 19 readonly attribute USVString name; |
25 readonly attribute USVString iconURL; | 20 readonly attribute USVString iconURL; |
26 }; | 21 }; |
27 | 22 |
28 dictionary PasswordCredentialData : SiteBoundCredentialData { | 23 dictionary PasswordCredentialData : CredentialData { |
29 USVString password; | 24 USVString name; |
| 25 USVString iconURL; |
| 26 required USVString password; |
30 }; | 27 }; |
31 | 28 |
32 typedef (FormData or URLSearchParams) CredentialBodyType; | 29 typedef (FormData or URLSearchParams) CredentialBodyType; |
33 | 30 |
34 | 31 |
35 dictionary FederatedCredentialData : SiteBoundCredentialData { | 32 dictionary FederatedCredentialInit : CredentialData { |
36 USVString provider; | 33 USVString name; |
| 34 USVString iconURL; |
| 35 required USVString provider; |
37 DOMString protocol; | 36 DOMString protocol; |
38 }; | 37 }; |
39 | 38 |
40 dictionary CredentialRequestOptions { | 39 dictionary CredentialRequestOptions { |
41 boolean password = false; | 40 boolean password = false; |
42 FederatedCredentialRequestOptions federated; | 41 FederatedCredentialRequestOptions federated; |
43 | 42 |
44 boolean unmediated = false; | 43 boolean unmediated = false; |
45 }; | 44 }; |
46 | 45 |
(...skipping 15 matching lines...) Expand all Loading... |
62 Exposed=Window, | 61 Exposed=Window, |
63 SecureContext] | 62 SecureContext] |
64 interface PasswordCredential : Credential { | 63 interface PasswordCredential : Credential { |
65 attribute USVString idName; | 64 attribute USVString idName; |
66 attribute USVString passwordName; | 65 attribute USVString passwordName; |
67 | 66 |
68 attribute CredentialBodyType? additionalData; | 67 attribute CredentialBodyType? additionalData; |
69 }; | 68 }; |
70 PasswordCredential implements CredentialUserData; | 69 PasswordCredential implements CredentialUserData; |
71 | 70 |
72 [Constructor(FederatedCredentialData data), | 71 [Constructor(FederatedCredentialInit data), |
73 Exposed=Window, | 72 Exposed=Window, |
74 SecureContext] | 73 SecureContext] |
75 interface FederatedCredential : Credential { | 74 interface FederatedCredential : Credential { |
76 readonly attribute USVString provider; | 75 readonly attribute USVString provider; |
77 readonly attribute DOMString? protocol; | 76 readonly attribute DOMString? protocol; |
78 }; | 77 }; |
79 FederatedCredential implements CredentialUserData; | 78 FederatedCredential implements CredentialUserData; |
80 </script> | 79 </script> |
81 <script> | 80 <script> |
82 "use strict"; | 81 "use strict"; |
83 var idl_array = new IdlArray(); | 82 var idl_array = new IdlArray(); |
84 idl_array.add_untested_idls(document.querySelector('#untested').textContent)
; | 83 idl_array.add_untested_idls(document.querySelector('#untested').textContent)
; |
85 idl_array.add_idls(document.querySelector('#tested').textContent); | 84 idl_array.add_idls(document.querySelector('#tested').textContent); |
86 idl_array.add_objects({ | 85 idl_array.add_objects({ |
87 CredentialsContainer: ['navigator.credentials'], | 86 CredentialsContainer: ['navigator.credentials'], |
88 PasswordCredential: ['new PasswordCredential({ id: "id", password: "pencil
", iconURL: "https://example.com/", name: "name" })'], | 87 PasswordCredential: ['new PasswordCredential({ id: "id", password: "pencil
", iconURL: "https://example.com/", name: "name" })'], |
89 FederatedCredential: ['new FederatedCredential({ id: "id", provider: "http
s://example.com", iconURL: "https://example.com/", name: "name" })'] | 88 FederatedCredential: ['new FederatedCredential({ id: "id", provider: "http
s://example.com", iconURL: "https://example.com/", name: "name" })'] |
90 }); | 89 }); |
91 idl_array.test(); | 90 idl_array.test(); |
92 </script> | 91 </script> |
93 | 92 |
OLD | NEW |