Skip to content

Commit ce1bd42

Browse files
authored
Sync interfaces/ with @webref/idl 3.12.4
1 parent 20040a1 commit ce1bd42

34 files changed

+302
-337
lines changed

interfaces/CSP.idl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
[Exposed=Window]
77
interface CSPViolationReportBody : ReportBody {
8+
[Default] object toJSON();
89
readonly attribute USVString documentURL;
910
readonly attribute USVString? referrer;
1011
readonly attribute USVString? blockedURL;

interfaces/FedCM.idl

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,30 @@
44
// Source: Federated Credential Management API (https://fedidcg.github.io/FedCM/)
55

66
[Exposed=Window, SecureContext]
7-
dictionary FederatedAccountLoginRequest {
8-
AbortSignal signal;
9-
USVString nonce;
10-
};
11-
12-
[Exposed=Window, SecureContext]
13-
partial interface FederatedCredential {
14-
Promise<FederatedTokens> login(optional FederatedAccountLoginRequest request = {});
7+
interface IdentityCredential : Credential {
8+
readonly attribute USVString? token;
159
};
1610

17-
[Exposed=Window, SecureContext]
18-
dictionary FederatedTokens {
19-
USVString token;
11+
partial dictionary CredentialRequestOptions {
12+
IdentityCredentialRequestOptions identity;
2013
};
2114

22-
[Exposed=Window, SecureContext]
23-
partial interface FederatedCredential {
24-
Promise<undefined> revoke(USVString hint);
15+
dictionary IdentityCredentialRequestOptions {
16+
sequence<IdentityProvider> providers;
2517
};
2618

27-
[Exposed=Window, SecureContext]
28-
partial interface FederatedCredential {
29-
Promise<undefined> logout();
19+
dictionary IdentityProvider {
20+
required USVString configURL;
21+
required USVString clientId;
22+
USVString nonce;
3023
};
3124

32-
dictionary FederatedCredentialLogoutRpsRequest {
25+
dictionary IdentityCredentialLogoutRpsRequest {
3326
required USVString url;
3427
required USVString accountId;
3528
};
3629

3730
[Exposed=Window, SecureContext]
38-
partial interface FederatedCredential {
39-
static Promise<undefined> logoutRPs(sequence<FederatedCredentialLogoutRpsRequest> logoutRequests);
31+
partial interface IdentityCredential {
32+
static Promise<undefined> logoutRPs(sequence<IdentityCredentialLogoutRpsRequest> logoutRequests);
4033
};

interfaces/WEBGL_multi_draw.idl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface WEBGL_multi_draw {
1212
GLsizei drawcount);
1313
undefined multiDrawElementsWEBGL(
1414
GLenum mode,
15-
([AllowShared] Int32Array or sequence<GLint>) countsList, GLuint countsOffset,
15+
([AllowShared] Int32Array or sequence<GLsizei>) countsList, GLuint countsOffset,
1616
GLenum type,
1717
([AllowShared] Int32Array or sequence<GLsizei>) offsetsList, GLuint offsetsOffset,
1818
GLsizei drawcount);
@@ -24,7 +24,7 @@ interface WEBGL_multi_draw {
2424
GLsizei drawcount);
2525
undefined multiDrawElementsInstancedWEBGL(
2626
GLenum mode,
27-
([AllowShared] Int32Array or sequence<GLint>) countsList, GLuint countsOffset,
27+
([AllowShared] Int32Array or sequence<GLsizei>) countsList, GLuint countsOffset,
2828
GLenum type,
2929
([AllowShared] Int32Array or sequence<GLsizei>) offsetsList, GLuint offsetsOffset,
3030
([AllowShared] Int32Array or sequence<GLsizei>) instanceCountsList, GLuint instanceCountsOffset,

interfaces/WEBGL_multi_draw_instanced_base_vertex_base_instance.idl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface WEBGL_multi_draw_instanced_base_vertex_base_instance {
1111
([AllowShared] Int32Array or sequence<GLsizei>) countsList, GLuint countsOffset,
1212
([AllowShared] Int32Array or sequence<GLsizei>) instanceCountsList, GLuint instanceCountsOffset,
1313
([AllowShared] Uint32Array or sequence<GLuint>) baseInstancesList, GLuint baseInstancesOffset,
14-
GLsizei drawCount
14+
GLsizei drawcount
1515
);
1616
undefined multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(
1717
GLenum mode,
@@ -21,6 +21,6 @@ interface WEBGL_multi_draw_instanced_base_vertex_base_instance {
2121
([AllowShared] Int32Array or sequence<GLsizei>) instanceCountsList, GLuint instanceCountsOffset,
2222
([AllowShared] Int32Array or sequence<GLint>) baseVerticesList, GLuint baseVerticesOffset,
2323
([AllowShared] Uint32Array or sequence<GLuint>) baseInstancesList, GLuint baseInstancesOffset,
24-
GLsizei drawCount
24+
GLsizei drawcount
2525
);
2626
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// GENERATED CONTENT - DO NOT EDIT
2+
// Content was automatically extracted by Reffy into webref
3+
// (https://github.com/w3c/webref)
4+
// Source: Attribution Reporting (https://wicg.github.io/attribution-reporting-api/)
5+
6+
interface mixin HTMLAttributionSrcElementUtils {
7+
[CEReactions] attribute USVString attributionSrc;
8+
};
9+
10+
HTMLAnchorElement includes HTMLAttributionSrcElementUtils;
11+
HTMLImageElement includes HTMLAttributionSrcElementUtils;
12+
HTMLScriptElement includes HTMLAttributionSrcElementUtils;

interfaces/mediacapture-handle-identity.idl renamed to interfaces/capture-handle-identity.idl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,6 @@ partial interface MediaStreamTrack {
2222
CaptureHandle? getCaptureHandle();
2323
};
2424

25-
[Exposed=Window]
26-
interface CaptureHandleChangeEvent : Event {
27-
constructor(optional CaptureHandleChangeEventInit init = {});
28-
[SameObject] CaptureHandle captureHandle();
29-
};
30-
31-
dictionary CaptureHandleChangeEventInit : EventInit {
32-
CaptureHandle captureHandle;
33-
};
34-
3525
partial interface MediaStreamTrack {
3626
attribute EventHandler oncapturehandlechange;
3727
};

interfaces/compute-pressure.idl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ dictionary PressureRecord {
3636
};
3737

3838
dictionary PressureObserverOptions {
39-
double frequency;
39+
double samplerate;
4040
};

interfaces/conversion-measurement-api.idl

Lines changed: 0 additions & 31 deletions
This file was deleted.

interfaces/cookie-store.idl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ enum CookieSameSite {
3636
dictionary CookieInit {
3737
required USVString name;
3838
required USVString value;
39-
DOMTimeStamp? expires = null;
39+
EpochTimeStamp? expires = null;
4040
USVString? domain = null;
4141
USVString path = "/";
4242
CookieSameSite sameSite = "strict";
@@ -53,7 +53,7 @@ dictionary CookieListItem {
5353
USVString value;
5454
USVString? domain;
5555
USVString path;
56-
DOMTimeStamp? expires;
56+
EpochTimeStamp? expires;
5757
boolean secure;
5858
CookieSameSite sameSite;
5959
};

interfaces/credential-management.idl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
interface Credential {
88
readonly attribute USVString id;
99
readonly attribute DOMString type;
10-
static boolean isConditionalMediationAvailable();
10+
static Promise<boolean> isConditionalMediationAvailable();
1111
};
1212

1313
[SecureContext]

0 commit comments

Comments
 (0)