Skip to content

Commit

Permalink
Use BCD to autoremove unimplemented features (#915)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
saschanaz authored Mar 4, 2021
1 parent d52565b commit f45dc9f
Show file tree
Hide file tree
Showing 14 changed files with 787 additions and 726 deletions.
580 changes: 97 additions & 483 deletions baselines/dom.generated.d.ts

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions baselines/dom.iterable.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,6 @@ interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}

interface WebAuthentication {
makeCredential(accountInformation: Account, cryptoParameters: Iterable<ScopedCredentialParameters>, attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>;
}

interface WebGL2RenderingContextBase {
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
Expand Down
80 changes: 12 additions & 68 deletions baselines/webworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,6 @@ interface PushPermissionDescriptor extends PermissionDescriptor {
userVisibleOnly?: boolean;
}

interface PushSubscriptionChangeEventInit extends ExtendableEventInit {
newSubscription?: PushSubscription;
oldSubscription?: PushSubscription;
}

interface PushSubscriptionJSON {
endpoint?: string;
expirationTime?: number | null;
Expand Down Expand Up @@ -1550,7 +1545,6 @@ declare var ExtendableMessageEvent: {
interface FetchEvent extends ExtendableEvent {
readonly clientId: string;
readonly preloadResponse: Promise<any>;
readonly replacesClientId: string;
readonly request: Request;
readonly resultingClientId: string;
respondWith(r: Response | Promise<Response>): void;
Expand Down Expand Up @@ -2702,16 +2696,6 @@ declare var PushSubscription: {
new(): PushSubscription;
};

interface PushSubscriptionChangeEvent extends ExtendableEvent {
readonly newSubscription: PushSubscription | null;
readonly oldSubscription: PushSubscription | null;
}

declare var PushSubscriptionChangeEvent: {
prototype: PushSubscriptionChangeEvent;
new(type: string, eventInitDict?: PushSubscriptionChangeEventInit): PushSubscriptionChangeEvent;
};

interface PushSubscriptionOptions {
readonly applicationServerKey: ArrayBuffer | null;
readonly userVisibleOnly: boolean;
Expand Down Expand Up @@ -2913,7 +2897,6 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"notificationclick": NotificationEvent;
"notificationclose": NotificationEvent;
"push": PushEvent;
"pushsubscriptionchange": PushSubscriptionChangeEvent;
"sync": SyncEvent;
}

Expand All @@ -2928,7 +2911,6 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: PushSubscriptionChangeEvent) => any) | null;
onsync: ((this: ServiceWorkerGlobalScope, ev: SyncEvent) => any) | null;
readonly registration: ServiceWorkerRegistration;
readonly serviceWorker: ServiceWorker;
Expand Down Expand Up @@ -3174,34 +3156,6 @@ interface TextMetrics {
* Returns the measurement described below.
*/
readonly actualBoundingBoxRight: number;
/**
* Returns the measurement described below.
*/
readonly alphabeticBaseline: number;
/**
* Returns the measurement described below.
*/
readonly emHeightAscent: number;
/**
* Returns the measurement described below.
*/
readonly emHeightDescent: number;
/**
* Returns the measurement described below.
*/
readonly fontBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*/
readonly fontBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*/
readonly hangingBaseline: number;
/**
* Returns the measurement described below.
*/
readonly ideographicBaseline: number;
/**
* Returns the measurement described below.
*/
Expand Down Expand Up @@ -4387,7 +4341,7 @@ declare var WebGLActiveInfo: {
};

/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
interface WebGLBuffer extends WebGLObject {
interface WebGLBuffer {
}

declare var WebGLBuffer: {
Expand All @@ -4406,32 +4360,24 @@ declare var WebGLContextEvent: {
};

/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
interface WebGLFramebuffer extends WebGLObject {
interface WebGLFramebuffer {
}

declare var WebGLFramebuffer: {
prototype: WebGLFramebuffer;
new(): WebGLFramebuffer;
};

interface WebGLObject {
}

declare var WebGLObject: {
prototype: WebGLObject;
new(): WebGLObject;
};

/** 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). */
interface WebGLProgram extends WebGLObject {
interface WebGLProgram {
}

declare var WebGLProgram: {
prototype: WebGLProgram;
new(): WebGLProgram;
};

interface WebGLQuery extends WebGLObject {
interface WebGLQuery {
}

declare var WebGLQuery: {
Expand All @@ -4440,7 +4386,7 @@ declare var WebGLQuery: {
};

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

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

interface WebGLSampler extends WebGLObject {
interface WebGLSampler {
}

declare var WebGLSampler: {
Expand All @@ -5228,7 +5174,7 @@ declare var WebGLSampler: {
};

/** 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. */
interface WebGLShader extends WebGLObject {
interface WebGLShader {
}

declare var WebGLShader: {
Expand All @@ -5248,7 +5194,7 @@ declare var WebGLShaderPrecisionFormat: {
new(): WebGLShaderPrecisionFormat;
};

interface WebGLSync extends WebGLObject {
interface WebGLSync {
}

declare var WebGLSync: {
Expand All @@ -5257,15 +5203,15 @@ declare var WebGLSync: {
};

/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
interface WebGLTexture extends WebGLObject {
interface WebGLTexture {
}

declare var WebGLTexture: {
prototype: WebGLTexture;
new(): WebGLTexture;
};

interface WebGLTransformFeedback extends WebGLObject {
interface WebGLTransformFeedback {
}

declare var WebGLTransformFeedback: {
Expand All @@ -5282,15 +5228,15 @@ declare var WebGLUniformLocation: {
new(): WebGLUniformLocation;
};

interface WebGLVertexArrayObject extends WebGLObject {
interface WebGLVertexArrayObject {
}

declare var WebGLVertexArrayObject: {
prototype: WebGLVertexArrayObject;
new(): WebGLVertexArrayObject;
};

interface WebGLVertexArrayObjectOES extends WebGLObject {
interface WebGLVertexArrayObjectOES {
}

interface WebSocketEventMap {
Expand Down Expand Up @@ -5363,7 +5309,6 @@ declare var WebSocket: {

/** 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. */
interface WindowClient extends Client {
readonly ancestorOrigins: ReadonlyArray<string>;
readonly focused: boolean;
readonly visibilityState: VisibilityState;
focus(): Promise<WindowClient>;
Expand Down Expand Up @@ -5486,7 +5431,6 @@ declare var WorkerLocation: {
/** 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. */
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorOnLine, NavigatorStorage {
readonly permissions: Permissions;
readonly serviceWorker: ServiceWorkerContainer;
}

declare var WorkerNavigator: {
Expand Down
12 changes: 0 additions & 12 deletions inputfiles/comments.json
Original file line number Diff line number Diff line change
Expand Up @@ -1338,18 +1338,6 @@
}
}
},
"HTMLBaseFontElement": {
"properties": {
"property": {
"face": {
"comment": "/**\n * Sets or retrieves the current typeface family.\n */"
},
"size": {
"comment": "/**\n * Sets or retrieves the font size of the object.\n */"
}
}
}
},
"HTMLTextAreaElement": {
"properties": {
"property": {
Expand Down
Loading

0 comments on commit f45dc9f

Please sign in to comment.