From eb05b36707a80265050b57fe09de1255b58d462b Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Mon, 26 Jul 2021 11:06:25 +1000 Subject: [PATCH 1/4] FF91 Feature-Policy gamepad permission --- http/headers/feature-policy.json | 86 ++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/http/headers/feature-policy.json b/http/headers/feature-policy.json index 06c649771ca995..6331c96160341f 100644 --- a/http/headers/feature-policy.json +++ b/http/headers/feature-policy.json @@ -599,6 +599,92 @@ } } }, + "gamepad": { + "__compat": { + "mdn_url": "https://developer.mozilla.org/docs/Web/HTTP/Headers/Feature-Policy/gamepad", + "spec_url": "https://w3c.github.io/permissions/#gamepad", + "support": { + "chrome": { + "version_added": "86", + "flags": [ + { + "type": "preference", + "name": "#restrict-gamepad-access", + "value_to_set": "Enabled" + } + ] + }, + "chrome_android": { + "version_added": "86", + "flags": [ + { + "type": "preference", + "name": "#restrict-gamepad-access", + "value_to_set": "Enabled" + } + ] + }, + "edge": { + "version_added": "86", + "flags": [ + { + "type": "preference", + "name": "#restrict-gamepad-access", + "value_to_set": "Enabled" + } + ] + }, + "firefox": { + "version_added": "91", + "notes": "The default allowlist is all instead of self (as required by the specification)." + }, + "firefox_android": { + "version_added": "91", + "notes": "The default allowlist is all instead of self (as required by the specification)." + }, + "ie": { + "version_added": false + }, + "opera": { + "version_added": "72", + "flags": [ + { + "type": "preference", + "name": "#restrict-gamepad-access", + "value_to_set": "Enabled" + } + ] + }, + "opera_android": { + "version_added": "61", + "flags": [ + { + "type": "preference", + "name": "#restrict-gamepad-access", + "value_to_set": "Enabled" + } + ] + }, + "safari": { + "version_added": false + }, + "safari_ios": { + "version_added": false + }, + "samsunginternet_android": { + "version_added": false + }, + "webview_android": { + "version_added": false + } + }, + "status": { + "experimental": true, + "standard_track": true, + "deprecated": false + } + } + }, "geolocation": { "__compat": { "mdn_url": "https://developer.mozilla.org/docs/Web/HTTP/Headers/Feature-Policy/geolocation", From b564bc110c014dc85aaede1493acf7678abfb240 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Fri, 30 Jul 2021 16:01:27 +1000 Subject: [PATCH 2/4] Change allowlist from all to asterisk --- http/headers/feature-policy.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http/headers/feature-policy.json b/http/headers/feature-policy.json index 6331c96160341f..b1f4568ea57066 100644 --- a/http/headers/feature-policy.json +++ b/http/headers/feature-policy.json @@ -636,11 +636,11 @@ }, "firefox": { "version_added": "91", - "notes": "The default allowlist is all instead of self (as required by the specification)." + "notes": "The default allowlist is * instead of self (as required by the specification)." }, "firefox_android": { "version_added": "91", - "notes": "The default allowlist is all instead of self (as required by the specification)." + "notes": "The default allowlist is * instead of self (as required by the specification)." }, "ie": { "version_added": false From c82e889224a855e026e521d07359d6d4cd2bb670 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Fri, 6 Aug 2021 11:44:27 +1000 Subject: [PATCH 3/4] Update http/headers/feature-policy.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Marcos Cáceres --- http/headers/feature-policy.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/headers/feature-policy.json b/http/headers/feature-policy.json index b1f4568ea57066..41fdb0a69e08a5 100644 --- a/http/headers/feature-policy.json +++ b/http/headers/feature-policy.json @@ -602,7 +602,7 @@ "gamepad": { "__compat": { "mdn_url": "https://developer.mozilla.org/docs/Web/HTTP/Headers/Feature-Policy/gamepad", - "spec_url": "https://w3c.github.io/permissions/#gamepad", + "spec_url": "https://www.w3.org/TR/gamepad/#dfn-gamepad", "support": { "chrome": { "version_added": "86", From ce5074278c90fd6184fd4a35bf6719d6605aa548 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Fri, 6 Aug 2021 11:47:22 +1000 Subject: [PATCH 4/4] opera android to false - does not support flags --- http/headers/feature-policy.json | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/http/headers/feature-policy.json b/http/headers/feature-policy.json index 41fdb0a69e08a5..7db9eb84d6250a 100644 --- a/http/headers/feature-policy.json +++ b/http/headers/feature-policy.json @@ -656,14 +656,7 @@ ] }, "opera_android": { - "version_added": "61", - "flags": [ - { - "type": "preference", - "name": "#restrict-gamepad-access", - "value_to_set": "Enabled" - } - ] + "version_added": false }, "safari": { "version_added": false