Closed Bug 1640086 Opened 4 years ago Closed 4 years ago

[GamePad] Add permission policy "self" for "gamepad"

Categories

(Core :: DOM: Device Interfaces, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: marcosc, Assigned: marcosc)

References

(Blocks 1 open bug, )

Details

(Keywords: dev-doc-needed)

Attachments

(1 file)

It would be nice if access to the GamePad API was governed by feature policy.

Blocks: 1640085
Type: defect → enhancement

Hi Baku, do we have guide/docs for how to add a feature policy to something? Or maybe you can point us to a good example from another spec? For this, we want to allow navigator.getGamepads() to work if enabled by "gamepad"... otherwise, just works for "self".

Flags: needinfo?(amarchesini)
Summary: [GamePad] Add feature policy "self" for "gamepad" → [GamePad] Add permission policy "self" for "gamepad"
Assignee: nobody → mcaceres

Think I figured it out... will sent patch to see if it's right.

Flags: needinfo?(amarchesini)
Pushed by mcaceres@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b2c6b7f7f57a
Add "gamepad" permission policy as self r=ckerschb
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: