Skip to content

Commit bc59bef

Browse files
committed
Remove unimplemented Web Authentication APIs
1 parent 05ac05f commit bc59bef

File tree

4 files changed

+4
-94
lines changed

4 files changed

+4
-94
lines changed

baselines/dom.generated.d.ts

Lines changed: 0 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22
/// DOM APIs
33
/////////////////////////////
44

5-
interface Account {
6-
displayName: string;
7-
id: string;
8-
imageURL?: string;
9-
name?: string;
10-
rpDisplayName: string;
11-
}
12-
135
interface AddEventListenerOptions extends EventListenerOptions {
146
once?: boolean;
157
passive?: boolean;
@@ -77,13 +69,6 @@ interface AnimationPlaybackEventInit extends EventInit {
7769
timelineTime?: number | null;
7870
}
7971

80-
interface AssertionOptions {
81-
allowList?: ScopedCredentialDescriptor[];
82-
extensions?: WebAuthnExtensions;
83-
rpId?: string;
84-
timeoutSeconds?: number;
85-
}
86-
8772
interface AssignedNodesOptions {
8873
flatten?: boolean;
8974
}
@@ -202,15 +187,6 @@ interface ChannelSplitterOptions extends AudioNodeOptions {
202187
numberOfOutputs?: number;
203188
}
204189

205-
interface ClientData {
206-
challenge: string;
207-
extensions?: WebAuthnExtensions;
208-
hashAlg: string | Algorithm;
209-
origin: string;
210-
rpId: string;
211-
tokenBinding?: string;
212-
}
213-
214190
interface ClientQueryOptions {
215191
includeUncontrolled?: boolean;
216192
type?: ClientTypes;
@@ -1649,24 +1625,6 @@ interface SVGBoundingBoxOptions {
16491625
stroke?: boolean;
16501626
}
16511627

1652-
interface ScopedCredentialDescriptor {
1653-
id: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;
1654-
transports?: Transport[];
1655-
type: ScopedCredentialType;
1656-
}
1657-
1658-
interface ScopedCredentialOptions {
1659-
excludeList?: ScopedCredentialDescriptor[];
1660-
extensions?: WebAuthnExtensions;
1661-
rpId?: string;
1662-
timeoutSeconds?: number;
1663-
}
1664-
1665-
interface ScopedCredentialParameters {
1666-
algorithm: string | Algorithm;
1667-
type: ScopedCredentialType;
1668-
}
1669-
16701628
interface ScrollIntoViewOptions extends ScrollOptions {
16711629
block?: ScrollLogicalPosition;
16721630
inline?: ScrollLogicalPosition;
@@ -1872,9 +1830,6 @@ interface WaveShaperOptions extends AudioNodeOptions {
18721830
oversample?: OverSampleType;
18731831
}
18741832

1875-
interface WebAuthnExtensions {
1876-
}
1877-
18781833
interface WebGLContextAttributes {
18791834
alpha?: boolean;
18801835
antialias?: boolean;
@@ -14631,26 +14586,6 @@ declare var SVGZoomEvent: {
1463114586
new(): SVGZoomEvent;
1463214587
};
1463314588

14634-
interface ScopedCredential {
14635-
readonly id: ArrayBuffer;
14636-
readonly type: ScopedCredentialType;
14637-
}
14638-
14639-
declare var ScopedCredential: {
14640-
prototype: ScopedCredential;
14641-
new(): ScopedCredential;
14642-
};
14643-
14644-
interface ScopedCredentialInfo {
14645-
readonly credential: ScopedCredential;
14646-
readonly publicKey: CryptoKey;
14647-
}
14648-
14649-
declare var ScopedCredentialInfo: {
14650-
prototype: ScopedCredentialInfo;
14651-
new(): ScopedCredentialInfo;
14652-
};
14653-
1465414589
/** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */
1465514590
interface Screen {
1465614591
readonly availHeight: number;
@@ -16193,28 +16128,6 @@ declare var WaveShaperNode: {
1619316128
new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;
1619416129
};
1619516130

16196-
interface WebAuthentication {
16197-
getAssertion(assertionChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: AssertionOptions): Promise<WebAuthnAssertion>;
16198-
makeCredential(accountInformation: Account, cryptoParameters: ScopedCredentialParameters[], attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>;
16199-
}
16200-
16201-
declare var WebAuthentication: {
16202-
prototype: WebAuthentication;
16203-
new(): WebAuthentication;
16204-
};
16205-
16206-
interface WebAuthnAssertion {
16207-
readonly authenticatorData: ArrayBuffer;
16208-
readonly clientData: ArrayBuffer;
16209-
readonly credential: ScopedCredential;
16210-
readonly signature: ArrayBuffer;
16211-
}
16212-
16213-
declare var WebAuthnAssertion: {
16214-
prototype: WebAuthnAssertion;
16215-
new(): WebAuthnAssertion;
16216-
};
16217-
1621816131
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
1621916132
}
1622016133

@@ -19874,7 +19787,6 @@ type RequestRedirect = "error" | "follow" | "manual";
1987419787
type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
1987519788
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
1987619789
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
19877-
type ScopedCredentialType = "ScopedCred";
1987819790
type ScrollBehavior = "auto" | "smooth";
1987919791
type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
1988019792
type ScrollRestoration = "auto" | "manual";
@@ -19888,7 +19800,6 @@ type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "
1988819800
type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
1988919801
type TextTrackMode = "disabled" | "hidden" | "showing";
1989019802
type TouchType = "direct" | "stylus";
19891-
type Transport = "ble" | "nfc" | "usb";
1989219803
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
1989319804
type VRDisplayEventReason = "mounted" | "navigation" | "requested" | "unmounted";
1989419805
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";

baselines/dom.iterable.generated.d.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,6 @@ interface WEBGL_draw_buffers {
267267
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
268268
}
269269

270-
interface WebAuthentication {
271-
makeCredential(accountInformation: Account, cryptoParameters: Iterable<ScopedCredentialParameters>, attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>;
272-
}
273-
274270
interface WebGL2RenderingContextBase {
275271
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
276272
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;

inputfiles/knownTypes.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"BigInteger",
1212
"ByteLengthChunk",
1313
"CanvasRenderingContext2DSettings",
14-
"ClientData",
1514
"ClientQueryOptions",
1615
"ClientTypes",
1716
"CompositeOperationOrAuto",

inputfiles/removedTypes.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@
289289
}
290290
}
291291
},
292+
"ScopedCredential": null,
293+
"ScopedCredentialInfo": null,
292294
"ServiceWorkerGlobalScope": {
293295
"properties": {
294296
"property": {
@@ -411,6 +413,8 @@
411413
}
412414
}
413415
},
416+
"WebAuthentication": null,
417+
"WebAuthnAssertion": null,
414418
"WebGLBuffer": {
415419
"extends": null
416420
},

0 commit comments

Comments
 (0)