Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Permissions #56

Open
Maingron opened this issue Aug 3, 2022 · 0 comments
Open

Add Permissions #56

Maingron opened this issue Aug 3, 2022 · 0 comments

Comments

@Maingron
Copy link
Owner

Maingron commented Aug 3, 2022

Add a permission system with which programs can request permissions like access to camera, microphone or others.

This includes:

  • Sensors (which is one for all: accelerometer, ambient-light-sensor, battery, gyroscope, magnetometer, web-xr)
  • GPS (geolocation)
  • microphone (Maybe handle through MainOS Driver)
  • camera (Maybe handle through MainOS Driver)
  • display-capture
  • midi
  • usb (Maybe handle through MainOS)
  • screen-wake-lock so the user doesn't unexpectedly get a screen that stays on

This should not be too hard using Permissions Policy.

Some references:

https://github.com/w3c/webappsec-permissions-policy/blob/main/features.md
https://www.permissionspolicy.com/
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy

Permissions intended to be disabled globally (for now) include:

  • allow-top-navigation
  • oversized-images
  • payment
  • probably speaker-selection

Think about:

  • picture-in-picture
  • web-share
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant