-
Notifications
You must be signed in to change notification settings - Fork 51
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
A more modest request() #158
Comments
@raymeskhoury Are you the right person to talk about how Chrome's doing permissions for the Accelerometer/Gyroscope/Magnetometer/Light Sensors? My memory's that we're exposing information via w3c/sensors#183 with @reillyeon and @anssiko appears to have decided not to deal with high-vs-low precision yet, in order to dodge the permission question. In general, I weakly prefer APIs like |
For Chrome permissions UX learnings and implementation plan for the concrete low level sensors that decompose orientation/motion events, see https://docs.google.com/document/d/1XThujZ2VJm0z0Gon1zbFkYhYo6K8nMxJjxNJ3wk9KHo/mobilebasic Re @annevk’s comment in https://groups.google.com/forum/m/#!msg/mozilla.dev.platform/1YdMiVQ2zaU/UOocyiTzDwAJ:
The maintenance issue will be fixed soon, see w3c/das-charter#31 |
@annevk I agree with @jyasskin on The difference might become apparent if we wanted a The specs pointing here seem to have in common that their feature is the firing of certain events, for which there is no obvious control surface or configuration options (at the moment). |
@jan-ivar The Generic Sensors API already has I'm curious what @jyasskin thinks is not generic about the sensors permission request. Is it that it could be requesting permission for a particular frequency or precision? Could that be included in the |
@reillyeon Sorry for being unclear. I understand @annevk as suggesting that we add a I believe the Mozilla thread is talking about constraining the old ... Given that, is there value in asking developers to call a new function in order to keep using the old events? Should we just encourage them to move over to the new API instead? |
Just to share my 2c on request():
(4) may mean that request() does not fit in with the current design of many APIs but I think we need to think about the direction we want to head in the future and then consider how/whether to move older APIs to that future. |
Does anyone other than Chrome implement the new API? Anyway, I'm happy with just going with more specific methods instead. I don't really care much for a generic variant personally. |
@raymeskhoury We have But we also need a way to request But I don't think it makes sense for this And if we remove My preference is for there to be a [1] Note: |
@garykac the |
@garykac Is "full" access merely persistent If so, then how often to bother users with prompts seems like a UX decision to me (between the user and its agent). We could also encourage UAs to merge prompts within a narrow window of time. |
Thanks @garykac
Actually I think it's helpful to get away from the word "request". It has too much baggage associated with it now. Adding a generic request() function is not intended to separate consent and acquisition. It would be intended intended to standardize API design for APIs that require getting a handle to some system-level capability that may require user consent. This is a pattern that we're seeing come up more and more and solutions tend to be ad hoc. |
As request() is no longer in scope, and as the newer device APIs already have a means of requesting permission, I'm going ahead and closing this. NB: the ability to use a enum for |
We've been looking at orientation/motion events yet again and the idea came up to permission-gate them. For this having something like
request()
with a simple string value seems useful.Another case that keeps coming up is the clipboard. See w3c/clipboard-apis#51 for the latest discussion there.
Perhaps rather than an open-ended
request()
method, we could start out with just a couple simple values for which everything is known, rather than try to support all permissions. I hope that might address the concerns raised in #83. So we basically would userequest()
when there's no better alternative.(I'm not sure where the initial email went, but here is the recent thread on restricting orientation/motion events: https://groups.google.com/d/msg/mozilla.dev.platform/1YdMiVQ2zaU/UOocyiTzDwAJ.)
cc @ehsan @martinthomson @garykac @jan-ivar @jyasskin @marcoscaceres
The text was updated successfully, but these errors were encountered: