Skip to content

Commit f45dc9f

Browse files
authored
Use BCD to autoremove unimplemented features (#915)
* Remove unimplemented WindowClient#ancestorOrigins * Remove unimplemented WorkerNavigator#serviceWorker * Remove unimplemented PushSubscriptionChangeEvent * Remove unimplemented WebGLObject * Remove unimplemented WebVR APIs * Remove unimplemented TextTrack#sourceBuffer * Remove unexposed TextMetrics APIs * Remove unimplemented SVGUseElement properties * Update WebRTC types * Add Payment Request types * Remove MediaStreamTrack isolation * Remove MS-prefixed events * Remove HTMLBaseFontElement * Remove ServiceWorkerMessageEvent * Remove DeviceLightEvent * Remove unimplemented Web Authentication APIs * Use BCD to autoremove unimplemented features * bcd 2.0.5 * bcd 2.0.6 * 2.0.7
1 parent d52565b commit f45dc9f

14 files changed

+787
-726
lines changed

baselines/dom.generated.d.ts

+97-483
Large diffs are not rendered by default.

baselines/dom.iterable.generated.d.ts

-4
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;

baselines/webworker.generated.d.ts

+12-68
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,6 @@ interface PushPermissionDescriptor extends PermissionDescriptor {
362362
userVisibleOnly?: boolean;
363363
}
364364

365-
interface PushSubscriptionChangeEventInit extends ExtendableEventInit {
366-
newSubscription?: PushSubscription;
367-
oldSubscription?: PushSubscription;
368-
}
369-
370365
interface PushSubscriptionJSON {
371366
endpoint?: string;
372367
expirationTime?: number | null;
@@ -1550,7 +1545,6 @@ declare var ExtendableMessageEvent: {
15501545
interface FetchEvent extends ExtendableEvent {
15511546
readonly clientId: string;
15521547
readonly preloadResponse: Promise<any>;
1553-
readonly replacesClientId: string;
15541548
readonly request: Request;
15551549
readonly resultingClientId: string;
15561550
respondWith(r: Response | Promise<Response>): void;
@@ -2702,16 +2696,6 @@ declare var PushSubscription: {
27022696
new(): PushSubscription;
27032697
};
27042698

2705-
interface PushSubscriptionChangeEvent extends ExtendableEvent {
2706-
readonly newSubscription: PushSubscription | null;
2707-
readonly oldSubscription: PushSubscription | null;
2708-
}
2709-
2710-
declare var PushSubscriptionChangeEvent: {
2711-
prototype: PushSubscriptionChangeEvent;
2712-
new(type: string, eventInitDict?: PushSubscriptionChangeEventInit): PushSubscriptionChangeEvent;
2713-
};
2714-
27152699
interface PushSubscriptionOptions {
27162700
readonly applicationServerKey: ArrayBuffer | null;
27172701
readonly userVisibleOnly: boolean;
@@ -2913,7 +2897,6 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
29132897
"notificationclick": NotificationEvent;
29142898
"notificationclose": NotificationEvent;
29152899
"push": PushEvent;
2916-
"pushsubscriptionchange": PushSubscriptionChangeEvent;
29172900
"sync": SyncEvent;
29182901
}
29192902

@@ -2928,7 +2911,6 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
29282911
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
29292912
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
29302913
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
2931-
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: PushSubscriptionChangeEvent) => any) | null;
29322914
onsync: ((this: ServiceWorkerGlobalScope, ev: SyncEvent) => any) | null;
29332915
readonly registration: ServiceWorkerRegistration;
29342916
readonly serviceWorker: ServiceWorker;
@@ -3174,34 +3156,6 @@ interface TextMetrics {
31743156
* Returns the measurement described below.
31753157
*/
31763158
readonly actualBoundingBoxRight: number;
3177-
/**
3178-
* Returns the measurement described below.
3179-
*/
3180-
readonly alphabeticBaseline: number;
3181-
/**
3182-
* Returns the measurement described below.
3183-
*/
3184-
readonly emHeightAscent: number;
3185-
/**
3186-
* Returns the measurement described below.
3187-
*/
3188-
readonly emHeightDescent: number;
3189-
/**
3190-
* Returns the measurement described below.
3191-
*/
3192-
readonly fontBoundingBoxAscent: number;
3193-
/**
3194-
* Returns the measurement described below.
3195-
*/
3196-
readonly fontBoundingBoxDescent: number;
3197-
/**
3198-
* Returns the measurement described below.
3199-
*/
3200-
readonly hangingBaseline: number;
3201-
/**
3202-
* Returns the measurement described below.
3203-
*/
3204-
readonly ideographicBaseline: number;
32053159
/**
32063160
* Returns the measurement described below.
32073161
*/
@@ -4387,7 +4341,7 @@ declare var WebGLActiveInfo: {
43874341
};
43884342

43894343
/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
4390-
interface WebGLBuffer extends WebGLObject {
4344+
interface WebGLBuffer {
43914345
}
43924346

43934347
declare var WebGLBuffer: {
@@ -4406,32 +4360,24 @@ declare var WebGLContextEvent: {
44064360
};
44074361

44084362
/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
4409-
interface WebGLFramebuffer extends WebGLObject {
4363+
interface WebGLFramebuffer {
44104364
}
44114365

44124366
declare var WebGLFramebuffer: {
44134367
prototype: WebGLFramebuffer;
44144368
new(): WebGLFramebuffer;
44154369
};
44164370

4417-
interface WebGLObject {
4418-
}
4419-
4420-
declare var WebGLObject: {
4421-
prototype: WebGLObject;
4422-
new(): WebGLObject;
4423-
};
4424-
44254371
/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */
4426-
interface WebGLProgram extends WebGLObject {
4372+
interface WebGLProgram {
44274373
}
44284374

44294375
declare var WebGLProgram: {
44304376
prototype: WebGLProgram;
44314377
new(): WebGLProgram;
44324378
};
44334379

4434-
interface WebGLQuery extends WebGLObject {
4380+
interface WebGLQuery {
44354381
}
44364382

44374383
declare var WebGLQuery: {
@@ -4440,7 +4386,7 @@ declare var WebGLQuery: {
44404386
};
44414387

44424388
/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
4443-
interface WebGLRenderbuffer extends WebGLObject {
4389+
interface WebGLRenderbuffer {
44444390
}
44454391

44464392
declare var WebGLRenderbuffer: {
@@ -5219,7 +5165,7 @@ interface WebGLRenderingContextOverloads {
52195165
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
52205166
}
52215167

5222-
interface WebGLSampler extends WebGLObject {
5168+
interface WebGLSampler {
52235169
}
52245170

52255171
declare var WebGLSampler: {
@@ -5228,7 +5174,7 @@ declare var WebGLSampler: {
52285174
};
52295175

52305176
/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */
5231-
interface WebGLShader extends WebGLObject {
5177+
interface WebGLShader {
52325178
}
52335179

52345180
declare var WebGLShader: {
@@ -5248,7 +5194,7 @@ declare var WebGLShaderPrecisionFormat: {
52485194
new(): WebGLShaderPrecisionFormat;
52495195
};
52505196

5251-
interface WebGLSync extends WebGLObject {
5197+
interface WebGLSync {
52525198
}
52535199

52545200
declare var WebGLSync: {
@@ -5257,15 +5203,15 @@ declare var WebGLSync: {
52575203
};
52585204

52595205
/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
5260-
interface WebGLTexture extends WebGLObject {
5206+
interface WebGLTexture {
52615207
}
52625208

52635209
declare var WebGLTexture: {
52645210
prototype: WebGLTexture;
52655211
new(): WebGLTexture;
52665212
};
52675213

5268-
interface WebGLTransformFeedback extends WebGLObject {
5214+
interface WebGLTransformFeedback {
52695215
}
52705216

52715217
declare var WebGLTransformFeedback: {
@@ -5282,15 +5228,15 @@ declare var WebGLUniformLocation: {
52825228
new(): WebGLUniformLocation;
52835229
};
52845230

5285-
interface WebGLVertexArrayObject extends WebGLObject {
5231+
interface WebGLVertexArrayObject {
52865232
}
52875233

52885234
declare var WebGLVertexArrayObject: {
52895235
prototype: WebGLVertexArrayObject;
52905236
new(): WebGLVertexArrayObject;
52915237
};
52925238

5293-
interface WebGLVertexArrayObjectOES extends WebGLObject {
5239+
interface WebGLVertexArrayObjectOES {
52945240
}
52955241

52965242
interface WebSocketEventMap {
@@ -5363,7 +5309,6 @@ declare var WebSocket: {
53635309

53645310
/** This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. */
53655311
interface WindowClient extends Client {
5366-
readonly ancestorOrigins: ReadonlyArray<string>;
53675312
readonly focused: boolean;
53685313
readonly visibilityState: VisibilityState;
53695314
focus(): Promise<WindowClient>;
@@ -5486,7 +5431,6 @@ declare var WorkerLocation: {
54865431
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
54875432
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorOnLine, NavigatorStorage {
54885433
readonly permissions: Permissions;
5489-
readonly serviceWorker: ServiceWorkerContainer;
54905434
}
54915435

54925436
declare var WorkerNavigator: {

inputfiles/comments.json

-12
Original file line numberDiff line numberDiff line change
@@ -1338,18 +1338,6 @@
13381338
}
13391339
}
13401340
},
1341-
"HTMLBaseFontElement": {
1342-
"properties": {
1343-
"property": {
1344-
"face": {
1345-
"comment": "/**\n * Sets or retrieves the current typeface family.\n */"
1346-
},
1347-
"size": {
1348-
"comment": "/**\n * Sets or retrieves the font size of the object.\n */"
1349-
}
1350-
}
1351-
}
1352-
},
13531341
"HTMLTextAreaElement": {
13541342
"properties": {
13551343
"property": {

0 commit comments

Comments
 (0)