From 134c914d50e3d7539e2629c19693fd032869168e Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Fri, 4 Mar 2022 06:11:21 -0800 Subject: [PATCH] Adapt PresentationConnection API to new events structure (#15185) This PR adapts the PresentationConnection API to conform to the new events structure. Note: there are no MDN pages associated with this event, so there will be no corresponding content PR. Any broken MDN URLs in BCD have been removed. --- api/PresentationConnection.json | 80 ++++++++++++++++----------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/api/PresentationConnection.json b/api/PresentationConnection.json index 7bcecdd6e94307..20b7ea531f4001 100644 --- a/api/PresentationConnection.json +++ b/api/PresentationConnection.json @@ -194,16 +194,15 @@ } } }, - "id": { + "close_event": { "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/API/PresentationConnection/id", - "spec_url": "https://w3c.github.io/presentation-api/#dom-presentationconnection-id", + "description": "close event", "support": { "chrome": { - "version_added": "47" + "version_added": "50" }, "chrome_android": { - "version_added": "47" + "version_added": "50" }, "edge": { "version_added": "79" @@ -234,10 +233,10 @@ "version_added": false }, "opera": { - "version_added": "34" + "version_added": "37" }, "opera_android": { - "version_added": "34" + "version_added": "37" }, "safari": { "version_added": false @@ -259,9 +258,9 @@ } } }, - "onclose": { + "connect_event": { "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/API/PresentationConnection/onclose", + "description": "connect event", "support": { "chrome": { "version_added": "50" @@ -323,15 +322,16 @@ } } }, - "onconnect": { + "id": { "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/API/PresentationConnection/onconnect", + "mdn_url": "https://developer.mozilla.org/docs/Web/API/PresentationConnection/id", + "spec_url": "https://w3c.github.io/presentation-api/#dom-presentationconnection-id", "support": { "chrome": { - "version_added": "50" + "version_added": "47" }, "chrome_android": { - "version_added": "50" + "version_added": "47" }, "edge": { "version_added": "79" @@ -362,10 +362,10 @@ "version_added": false }, "opera": { - "version_added": "37" + "version_added": "34" }, "opera_android": { - "version_added": "37" + "version_added": "34" }, "safari": { "version_added": false @@ -387,9 +387,9 @@ } } }, - "onmessage": { + "message_event": { "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/API/PresentationConnection/onmessage", + "description": "message event", "support": { "chrome": { "version_added": "47" @@ -451,15 +451,16 @@ } } }, - "onterminate": { + "send": { "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/API/PresentationConnection/onterminate", + "mdn_url": "https://developer.mozilla.org/docs/Web/API/PresentationConnection/send", + "spec_url": "https://w3c.github.io/presentation-api/#dom-presentationconnection-send", "support": { "chrome": { - "version_added": "50" + "version_added": "47" }, "chrome_android": { - "version_added": "50" + "version_added": "47" }, "edge": { "version_added": "79" @@ -490,10 +491,10 @@ "version_added": false }, "opera": { - "version_added": "37" + "version_added": "34" }, "opera_android": { - "version_added": "37" + "version_added": "34" }, "safari": { "version_added": false @@ -515,10 +516,10 @@ } } }, - "send": { + "state": { "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/API/PresentationConnection/send", - "spec_url": "https://w3c.github.io/presentation-api/#dom-presentationconnection-send", + "mdn_url": "https://developer.mozilla.org/docs/Web/API/PresentationConnection/state", + "spec_url": "https://w3c.github.io/presentation-api/#dom-presentationconnection-state", "support": { "chrome": { "version_added": "47" @@ -580,16 +581,16 @@ } } }, - "state": { + "terminate": { "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/API/PresentationConnection/state", - "spec_url": "https://w3c.github.io/presentation-api/#dom-presentationconnection-state", + "mdn_url": "https://developer.mozilla.org/docs/Web/API/PresentationConnection/terminate", + "spec_url": "https://w3c.github.io/presentation-api/#dom-presentationconnection-terminate", "support": { "chrome": { - "version_added": "47" + "version_added": "48" }, "chrome_android": { - "version_added": "47" + "version_added": "48" }, "edge": { "version_added": "79" @@ -620,10 +621,10 @@ "version_added": false }, "opera": { - "version_added": "34" + "version_added": "35" }, "opera_android": { - "version_added": "34" + "version_added": "35" }, "safari": { "version_added": false @@ -645,16 +646,15 @@ } } }, - "terminate": { + "terminate_event": { "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/API/PresentationConnection/terminate", - "spec_url": "https://w3c.github.io/presentation-api/#dom-presentationconnection-terminate", + "description": "terminate event", "support": { "chrome": { - "version_added": "48" + "version_added": "50" }, "chrome_android": { - "version_added": "48" + "version_added": "50" }, "edge": { "version_added": "79" @@ -685,10 +685,10 @@ "version_added": false }, "opera": { - "version_added": "35" + "version_added": "37" }, "opera_android": { - "version_added": "35" + "version_added": "37" }, "safari": { "version_added": false