From 437e63bac2759bfb25d213e696da255b632c527e Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Mon, 28 Feb 2022 15:29:52 -0800 Subject: [PATCH 1/2] Adapt api.PresentationRequest.onconnectionavailable to new events structure This PR adapts the connectionavailable event of the PresentationRequest API to conform to the new events structure. --- api/PresentationRequest.json | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/api/PresentationRequest.json b/api/PresentationRequest.json index bb2e0f13dace27..087ed307ae33d8 100644 --- a/api/PresentationRequest.json +++ b/api/PresentationRequest.json @@ -130,10 +130,11 @@ } } }, - "getAvailability": { + "connectionavailable_event": { "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/API/PresentationRequest/getAvailability", - "spec_url": "https://w3c.github.io/presentation-api/#getting-the-presentation-displays-availability-information", + "description": "connectionavailable event", + "mdn_url": "https://developer.mozilla.org/docs/Web/API/PresentationRequest/connectionavailable_event", + "spec_url": "https://w3c.github.io/presentation-api/#dom-presentationrequest-onconnectionavailable", "support": { "chrome": { "version_added": "47" @@ -195,10 +196,10 @@ } } }, - "onconnectionavailable": { + "getAvailability": { "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/API/PresentationRequest/onconnectionavailable", - "spec_url": "https://w3c.github.io/presentation-api/#dom-presentationrequest-onconnectionavailable", + "mdn_url": "https://developer.mozilla.org/docs/Web/API/PresentationRequest/getAvailability", + "spec_url": "https://w3c.github.io/presentation-api/#getting-the-presentation-displays-availability-information", "support": { "chrome": { "version_added": "47" From 59f4b4e8b7105ef7db90656e8d2160888c3f7cdc Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Tue, 15 Mar 2022 03:30:46 -0700 Subject: [PATCH 2/2] Remove MDN URL --- api/PresentationRequest.json | 1 - 1 file changed, 1 deletion(-) diff --git a/api/PresentationRequest.json b/api/PresentationRequest.json index 087ed307ae33d8..beb0eb6a9e1a76 100644 --- a/api/PresentationRequest.json +++ b/api/PresentationRequest.json @@ -133,7 +133,6 @@ "connectionavailable_event": { "__compat": { "description": "connectionavailable event", - "mdn_url": "https://developer.mozilla.org/docs/Web/API/PresentationRequest/connectionavailable_event", "spec_url": "https://w3c.github.io/presentation-api/#dom-presentationrequest-onconnectionavailable", "support": { "chrome": {