From 1c57b4775a459f312fb993f3ddbe0af867675323 Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Mon, 28 Mar 2022 01:54:41 -0700 Subject: [PATCH] Adapt api.ServiceWorkerRegistration.onupdatefound to new events structure This PR adapts the updatefound event of the ServiceWorkerRegistration API to conform to the new events structure. --- api/ServiceWorkerRegistration.json | 101 +++++++++++++++-------------- 1 file changed, 51 insertions(+), 50 deletions(-) diff --git a/api/ServiceWorkerRegistration.json b/api/ServiceWorkerRegistration.json index 0ea3fe6f9ee4a1..2a17ea25294a19 100644 --- a/api/ServiceWorkerRegistration.json +++ b/api/ServiceWorkerRegistration.json @@ -397,56 +397,6 @@ } } }, - "onupdatefound": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/onupdatefound", - "spec_url": "https://w3c.github.io/ServiceWorker/#dom-serviceworkerregistration-onupdatefound", - "support": { - "chrome": { - "version_added": "40" - }, - "chrome_android": { - "version_added": "40" - }, - "edge": { - "version_added": "17" - }, - "firefox": { - "version_added": "44", - "notes": "Extended Support Releases (ESR) before Firefox 78 ESR do not support service workers and the Push API." - }, - "firefox_android": { - "version_added": "44" - }, - "ie": { - "version_added": false - }, - "opera": { - "version_added": "27" - }, - "opera_android": { - "version_added": "27" - }, - "safari": { - "version_added": "11.1" - }, - "safari_ios": { - "version_added": "11.3" - }, - "samsunginternet_android": { - "version_added": "4.0" - }, - "webview_android": { - "version_added": "40" - } - }, - "status": { - "experimental": true, - "standard_track": true, - "deprecated": false - } - } - }, "paymentManager": { "__compat": { "mdn_url": "https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/paymentManager", @@ -1198,6 +1148,57 @@ } } }, + "updatefound_event": { + "__compat": { + "description": "updatefound event", + "mdn_url": "https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event", + "spec_url": "https://w3c.github.io/ServiceWorker/#dom-serviceworkerregistration-onupdatefound", + "support": { + "chrome": { + "version_added": "40" + }, + "chrome_android": { + "version_added": "40" + }, + "edge": { + "version_added": "17" + }, + "firefox": { + "version_added": "44", + "notes": "Extended Support Releases (ESR) before Firefox 78 ESR do not support service workers and the Push API." + }, + "firefox_android": { + "version_added": "44" + }, + "ie": { + "version_added": false + }, + "opera": { + "version_added": "27" + }, + "opera_android": { + "version_added": "27" + }, + "safari": { + "version_added": "11.1" + }, + "safari_ios": { + "version_added": "11.3" + }, + "samsunginternet_android": { + "version_added": "4.0" + }, + "webview_android": { + "version_added": "40" + } + }, + "status": { + "experimental": true, + "standard_track": true, + "deprecated": false + } + } + }, "updateViaCache": { "__compat": { "mdn_url": "https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache",