From b01c25c6cd6731320b3d77773ddac3eced580c0e Mon Sep 17 00:00:00 2001
From: Steve Agoston
button.
+ This specification defines a policy-controlled feature identified by
+ the string "gamepad
".
+ Its default allowlist
+ is 'self
'.
+
+ A document’s feature + policy determines whether any content in that document is allowed + to access {{getGamepads()}}. If disabled in any document, no content + in the document will be allowed to use {{getGamepads()}} + (trying to access will throw). +
+
This specification defines conformance criteria that apply to a single
From 2360bc45eb5b62576ff3d7d95cb8a853aa5924a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=
button.
This specification defines a policy-controlled feature identified by
- the string "gamepad
".
- Its default allowlist
- is 'self
'.
+ the string "`gamepad`". Its default allowlist is '`self`'.
- A document’s feature + A document’s feature policy determines whether any content in that document is allowed - to access {{getGamepads()}}. If disabled in any document, no content - in the document will be allowed to use {{getGamepads()}} - (trying to access will throw). + to access {{Navigator/getGamepads()}}. If disabled in any document, no content + in the document will be allowed to use {{Navigator/getGamepads()}}.
- A document’s feature - policy determines whether any content in that document is allowed - to access {{Navigator/getGamepads()}}. If disabled in any document, no content - in the document will be allowed to use {{Navigator/getGamepads()}}. + A document’s feature policy determines whether any + content in that document is allowed to access + {{Navigator/getGamepads()}}. If disabled in any document, no content + in the document will be allowed to use + {{Navigator/getGamepads()}}.
User agents implementing this specification must provide a new DOM
event, named gamepadconnected
. The corresponding event
- MUST be of type GamepadEvent
and MUST fire on the
- window
object. Registration for and firing of the
- gamepadconnected
event MUST follow the usual behavior of
- DOM Events. [[DOM]]
+ MUST be of type GamepadEvent
and, if allowed to use
+ the "`gamepad`" feature, MUST fire on the window
object.
+ Registration for and firing of the gamepadconnected
event
+ MUST follow the usual behavior of DOM Events. [[DOM]]
A user agent MUST dispatch this event type to indicate the user @@ -760,10 +760,10 @@
User agents implementing this specification must provide a new DOM
event, named gamepaddisconnected
. The corresponding event
- MUST be of type GamepadEvent
and MUST fire on the
- window
object. Registration for and firing of the
- gamepaddisconnected
event MUST follow the usual behavior
- of DOM Events. [[DOM]]
+ MUST be of type GamepadEvent
and, if allowed to use
+ the "`gamepad`" feature, MUST fire on the window
object.
+ Registration for and firing of the gamepaddisconnected
+ event MUST follow the usual behavior of DOM Events. [[DOM]]
When a gamepad is disconnected from the user agent, if the @@ -798,7 +798,8 @@
- A document’s feature policy determines whether any
+ A document’s [=Document/feature policy=] determines whether any
content in that document is allowed to access
{{Navigator/getGamepads()}}. If disabled in any document, no content
in the document will be allowed to use
From 9920b30209426bc06a8cd7e04d38e59c919269df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=
User agents implementing this specification must provide a new DOM
event, named
gamepadconnected
. The corresponding event
- MUST be of type GamepadEvent
and, if allowed to use
- the "`gamepad`" feature, MUST fire on the window
object.
+ MUST be of type {{GamepadEvent}} and, if allowed to use the
+ "`gamepad`" permission, MUST fire on the window
object.
Registration for and firing of the gamepadconnected
event
MUST follow the usual behavior of DOM Events. [[DOM]]
User agents implementing this specification must provide a new DOM
event, named
gamepaddisconnected
. The corresponding event
MUST be of type GamepadEvent
and, if allowed to use
- the "`gamepad`" feature, MUST fire on the window
object.
- Registration for and firing of the gamepaddisconnected
- event MUST follow the usual behavior of DOM Events. [[DOM]]
+ the "`gamepad`" permission, MUST fire on the window
+ object. Registration for and firing of the
+ gamepaddisconnected
event MUST follow the usual behavior
+ of DOM Events. [[DOM]]
When a gamepad is disconnected from the user agent, if the @@ -802,9 +803,9 @@
This specification defines a policy-controlled feature identified by @@ -812,8 +813,8 @@
- A document’s [=Document/feature policy=] determines whether any
- content in that document is allowed to access
+ A document’s [=Document/permission policy=] determines whether
+ any content in that document is allowed to access
{{Navigator/getGamepads()}}. If disabled in any document, no content
in the document will be allowed to use
{{Navigator/getGamepads()}}, nor will the "gamepadconnected" and
From 9a2dc4073a84b31c6e68b042a4a97831887a9cef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=
- A document’s [=Document/permission policy=] determines whether
- any content in that document is allowed to access
+ A document’s [=Document/permissions policy=] determines
+ whether any content in that document is allowed to access
{{Navigator/getGamepads()}}. If disabled in any document, no content
in the document will be allowed to use
{{Navigator/getGamepads()}}, nor will the "gamepadconnected" and
From f5554b817b8adafa5b5804bc48f31ae116827740 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=
This specification defines a policy-controlled feature identified by
- Integration with permission policy
+ Integration with Permissions Policy