Skip to content

Add camera permission requirement to spec? #79

@rakuco

Description

@rakuco

See https://www.w3.org/2021/10/29-dap-minutes.html#t07:

RESOLUTION: Add camera permission requirement to ALS spec to help enable shipment of the API

If I've understood it correctly, the idea would be to add text to the spec that mandates that permission for accessing ALS would be granted only if access to ALS as well as camera is allowed (in a similar fashion to getUserMedia() and the microphone/camera permissions, for example).

I'd like to make sure that this is indeed the idea, especially in light of #64 (comment) (This will require continuous monitoring of the ALS and not make sense to bundle with a camera API (including permissions)).

I'm also wondering if this makes sense as a normative requirement or as an implementation detail. The DAS F2F discussion mentioned Chrome's position:

we'd be willing to enable the ALS API for websites that use camera already
we could consider ALS augmenting the camera

in this case, isn't it up to the UA to do one of the following:

  • Reject calls to AmbientLightSensor.start() if access to the camera has not been granted before
  • Show a custom prompt for ALS that would cause access to camera and ALS to be granted together
  • Automatically grant access to ALS if access to the camera has already been granted
  • Something else entirely

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions