Skip to content

Commit

Permalink
Update Permissions Policy
Browse files Browse the repository at this point in the history
This updates permissions policy with the following:
- bluetooth
- mediasession
- navigation-override
- otp-credentials

Updated policies listed here: https://github.com/w3c/webappsec-permissions-policy/blob/main/features.md#policy-controlled-features
  • Loading branch information
siaw23 committed Nov 24, 2024
1 parent ce8a6f1 commit 0e15cf2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions actionpack/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@
*Petrik de Heus*

Please check [8-0-stable](https://github.com/rails/rails/blob/8-0-stable/actionpack/CHANGELOG.md) for previous changes.

* Add `bluetooth`, `mediasession`, `navigation-override` and `otp-credentials` to `permissions_policy`

*Emmanuel Hayford*
4 changes: 4 additions & 0 deletions actionpack/lib/action_dispatch/http/permissions_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def permissions_policy=(policy)
accelerometer: "accelerometer",
ambient_light_sensor: "ambient-light-sensor",
autoplay: "autoplay",
bluetooth: "bluetooth",
camera: "camera",
display_capture: "display-capture",
encrypted_media: "encrypted-media",
Expand All @@ -95,8 +96,11 @@ def permissions_policy=(policy)
idle_detection: "idle-detection",
keyboard_map: "keyboard-map",
magnetometer: "magnetometer",
mediasession: "mediasession",
microphone: "microphone",
midi: "midi",
navigation_override: "navigation-override",
otp_credentials: "otp-credentials",
payment: "payment",
picture_in_picture: "picture-in-picture",
screen_wake_lock: "screen-wake-lock",
Expand Down

0 comments on commit 0e15cf2

Please sign in to comment.