Skip to content

Commit 4fe9ad7

Browse files
authored
Add secure context and iframe to Gamepad features (#2469)
1 parent aad8bf6 commit 4fe9ad7

File tree

6 files changed

+49
-4
lines changed

6 files changed

+49
-4
lines changed

features/gamepad-haptics.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ compat_features:
1616
- api.GamepadHapticActuator.playEffect.params_rightTrigger_parameter
1717
- api.GamepadHapticActuator.playEffect.type_trigger-rumble
1818
- api.GamepadHapticActuator.reset
19+
- api.GamepadHapticActuator.secure_context_required

features/gamepad-haptics.yml.dist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,9 @@ compat_features:
5454
# firefox_android: "55"
5555
- api.Gamepad.hapticActuators
5656
- api.GamepadHapticActuator.pulse
57+
58+
# baseline: false
59+
# support:
60+
# firefox: "91"
61+
# firefox_android: "91"
62+
- api.GamepadHapticActuator.secure_context_required

features/gamepad-vr.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Gamepad VR hands and poses
22
description: The `hand` and `pose` properties of a `Gamepad` object represent the position in space and the hand that WebVR controllers are held in.
33
spec: https://w3c.github.io/gamepad/extensions.html
44
group: gamepad
5+
status:
6+
compute_from:
7+
- api.Gamepad.hand
8+
- api.Gamepad.pose
59
compat_features:
610
- api.Gamepad.hand
711
- api.Gamepad.pose
@@ -14,3 +18,4 @@ compat_features:
1418
- api.GamepadPose.linearVelocity
1519
- api.GamepadPose.orientation
1620
- api.GamepadPose.position
21+
- api.GamepadPose.secure_context_required

features/gamepad-vr.yml.dist

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ status:
77
firefox: "55"
88
firefox_android: "55"
99
compat_features:
10+
# ⬇️ Same status as overall feature ⬇️
11+
# baseline: false
12+
# support:
13+
# firefox: "55"
14+
# firefox_android: "55"
1015
- api.Gamepad.hand
1116
- api.Gamepad.pose
1217
- api.GamepadPose
@@ -18,3 +23,9 @@ compat_features:
1823
- api.GamepadPose.linearVelocity
1924
- api.GamepadPose.orientation
2025
- api.GamepadPose.position
26+
27+
# baseline: false
28+
# support:
29+
# firefox: "91"
30+
# firefox_android: "91"
31+
- api.GamepadPose.secure_context_required

features/gamepad.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ spec: https://w3c.github.io/gamepad/
44
caniuse: gamepad
55
group: gamepad
66
status:
7-
compute_from: api.Gamepad
7+
compute_from: api.Navigator.getGamepads
88
compat_features:
99
- api.Gamepad
1010
- api.Gamepad.axes
@@ -13,13 +13,18 @@ compat_features:
1313
- api.Gamepad.id
1414
- api.Gamepad.index
1515
- api.Gamepad.mapping
16+
- api.Gamepad.secure_context_required
1617
- api.Gamepad.timestamp
1718
- api.GamepadButton
1819
- api.GamepadButton.pressed
20+
- api.GamepadButton.secure_context_required
1921
- api.GamepadButton.value
2022
- api.Navigator.getGamepads
23+
- api.Navigator.getGamepads.secure_context_required
2124
- api.GamepadEvent
2225
- api.GamepadEvent.GamepadEvent
2326
- api.GamepadEvent.gamepad
27+
- api.GamepadEvent.secure_context_required
2428
- api.Window.gamepadconnected_event
2529
- api.Window.gamepaddisconnected_event
30+
- html.elements.iframe.allow.gamepad

features/gamepad.yml.dist

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@ status:
66
baseline_low_date: 2017-03-27
77
baseline_high_date: 2019-09-27
88
support:
9-
chrome: "21"
10-
chrome_android: "25"
9+
chrome: "35"
10+
chrome_android: "35"
1111
edge: "12"
1212
firefox: "29"
1313
firefox_android: "32"
1414
safari: "10.1"
1515
safari_ios: "10.3"
1616
compat_features:
17-
# ⬇️ Same status as overall feature ⬇️
1817
# baseline: high
1918
# baseline_low_date: 2017-03-27
2019
# baseline_high_date: 2019-09-27
@@ -52,6 +51,7 @@ compat_features:
5251
# safari_ios: "10.3"
5352
- api.Gamepad.connected
5453

54+
# ⬇️ Same status as overall feature ⬇️
5555
# baseline: high
5656
# baseline_low_date: 2017-03-27
5757
# baseline_high_date: 2019-09-27
@@ -74,3 +74,20 @@ compat_features:
7474
# safari_ios: "16"
7575
- api.Window.gamepadconnected_event
7676
- api.Window.gamepaddisconnected_event
77+
78+
# baseline: false
79+
# support:
80+
# firefox: "91"
81+
# firefox_android: "91"
82+
- api.Gamepad.secure_context_required
83+
- api.GamepadButton.secure_context_required
84+
- api.GamepadEvent.secure_context_required
85+
86+
# baseline: false
87+
# support:
88+
# firefox: "91"
89+
- api.Navigator.getGamepads.secure_context_required
90+
91+
# baseline: false
92+
# support: {}
93+
- html.elements.iframe.allow.gamepad

0 commit comments

Comments
 (0)