Skip to content

Commit 33ee5d6

Browse files
authored
Fix typo in Feature Policy for idle-detection
As listed in MDN, the policy is spelled as `idle-detection`, and not as `idle_detection`. Hence, browsers were unable to process the policy correctly, effectively ignoring it. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy/idle-detection
1 parent 92591eb commit 33ee5d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionpack/lib/action_dispatch/http/permissions_policy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def permissions_policy=(policy)
9898
geolocation: "geolocation",
9999
gyroscope: "gyroscope",
100100
hid: "hid",
101-
idle_detection: "idle_detection",
101+
idle_detection: "idle-detection",
102102
magnetometer: "magnetometer",
103103
microphone: "microphone",
104104
midi: "midi",

0 commit comments

Comments
 (0)