Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/credential-management/idl.https.html

Issue 2832813002: Drop SiteBoundCredential in favor of CredentialUserData (Closed)
Patch Set: HTTPS Rename Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/credential-management/idl.https-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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=/resources/WebIDLParser.js></script>
5 <script src=/w3c/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 interface Credential { 11 interface Credential {
12 readonly attribute USVString id; 12 readonly attribute USVString id;
13 readonly attribute DOMString type; 13 readonly attribute DOMString type;
14 }; 14 };
15 15
16 dictionary SiteBoundCredentialData : CredentialData { 16 dictionary SiteBoundCredentialData : CredentialData {
17 USVString name; 17 USVString name;
18 USVString iconURL; 18 USVString iconURL;
19 }; 19 };
20 20
21 interface SiteBoundCredential : Credential { 21 [
22 NoInterfaceObject,
23 SecureContext
24 ] interface CredentialUserData {
22 readonly attribute USVString name; 25 readonly attribute USVString name;
23 readonly attribute USVString iconURL; 26 readonly attribute USVString iconURL;
24 }; 27 };
25 28
26 dictionary PasswordCredentialData : SiteBoundCredentialData { 29 dictionary PasswordCredentialData : SiteBoundCredentialData {
27 USVString password; 30 USVString password;
28 }; 31 };
29 32
30 typedef (FormData or URLSearchParams) CredentialBodyType; 33 typedef (FormData or URLSearchParams) CredentialBodyType;
31 34
(...skipping 19 matching lines...) Expand all
51 <script type="text/plain" id="tested"> 54 <script type="text/plain" id="tested">
52 interface CredentialsContainer { 55 interface CredentialsContainer {
53 Promise<Credential> get(optional CredentialRequestOptions options); 56 Promise<Credential> get(optional CredentialRequestOptions options);
54 Promise<Credential> store(Credential credential); 57 Promise<Credential> store(Credential credential);
55 Promise<void> requireUserMediation(); 58 Promise<void> requireUserMediation();
56 }; 59 };
57 60
58 [Constructor(PasswordCredentialData data), 61 [Constructor(PasswordCredentialData data),
59 Constructor(HTMLFormElement form), 62 Constructor(HTMLFormElement form),
60 Exposed=Window] 63 Exposed=Window]
61 interface PasswordCredential : SiteBoundCredential { 64 interface PasswordCredential : Credential {
62 attribute USVString idName; 65 attribute USVString idName;
63 attribute USVString passwordName; 66 attribute USVString passwordName;
64 67
65 attribute CredentialBodyType? additionalData; 68 attribute CredentialBodyType? additionalData;
66 }; 69 };
70 PasswordCredential implements CredentialUserData;
67 71
68 [Constructor(FederatedCredentialData data), Exposed=Window] 72 [Constructor(FederatedCredentialData data), Exposed=Window]
69 interface FederatedCredential : SiteBoundCredential { 73 interface FederatedCredential : Credential {
70 readonly attribute USVString provider; 74 readonly attribute USVString provider;
71 readonly attribute DOMString? protocol; 75 readonly attribute DOMString? protocol;
72 }; 76 };
77 FederatedCredential implements CredentialUserData;
73 </script> 78 </script>
74 <script> 79 <script>
75 "use strict"; 80 "use strict";
76 var idl_array = new IdlArray(); 81 var idl_array = new IdlArray();
77 idl_array.add_untested_idls(document.querySelector('#untested').textContent) ; 82 idl_array.add_untested_idls(document.querySelector('#untested').textContent) ;
78 idl_array.add_idls(document.querySelector('#tested').textContent); 83 idl_array.add_idls(document.querySelector('#tested').textContent);
79 idl_array.add_objects({ 84 idl_array.add_objects({
80 CredentialsContainer: ['navigator.credentials'], 85 CredentialsContainer: ['navigator.credentials'],
81 PasswordCredential: ['new PasswordCredential({ id: "id", password: "pencil ", iconURL: "https://example.com/", name: "name" })'], 86 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" })'] 87 FederatedCredential: ['new FederatedCredential({ id: "id", provider: "http s://example.com", iconURL: "https://example.com/", name: "name" })']
83 }); 88 });
84 idl_array.test(); 89 idl_array.test();
85 </script> 90 </script>
86 91
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/credential-management/idl.https-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698