From 01cda51fca0982b773ce780f599fefdd96342df0 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 25 Oct 2020 03:44:20 +0100 Subject: [PATCH] Remove unimplemented PushSubscriptionChangeEvent --- baselines/webworker.generated.d.ts | 17 ----------------- inputfiles/removedTypes.json | 8 ++++++++ 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index f24219da5..1176a5cf5 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -365,11 +365,6 @@ interface PushPermissionDescriptor extends PermissionDescriptor { userVisibleOnly?: boolean; } -interface PushSubscriptionChangeEventInit extends ExtendableEventInit { - newSubscription?: PushSubscription; - oldSubscription?: PushSubscription; -} - interface PushSubscriptionJSON { endpoint?: string; expirationTime?: number | null; @@ -2687,16 +2682,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; @@ -2944,7 +2929,6 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { "notificationclick": NotificationEvent; "notificationclose": NotificationEvent; "push": PushEvent; - "pushsubscriptionchange": PushSubscriptionChangeEvent; "sync": SyncEvent; } @@ -2959,7 +2943,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; diff --git a/inputfiles/removedTypes.json b/inputfiles/removedTypes.json index 021272ef0..3a384cab1 100644 --- a/inputfiles/removedTypes.json +++ b/inputfiles/removedTypes.json @@ -246,6 +246,7 @@ "PasswordCredential": null, "Position": null, "PositionError": null, + "PushSubscriptionChangeEvent": null, "RTCDataChannel": { "properties": { "property": { @@ -267,6 +268,13 @@ } } }, + "ServiceWorkerGlobalScope": { + "properties": { + "property": { + "onpushsubscriptionchange": null + } + } + }, "ShadowRoot": { "properties": { "property": {