-
Notifications
You must be signed in to change notification settings - Fork 10
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
Feature Request: passive/silent option for requestStorageAccessFor #35
Comments
I believe the passive/silent option would be mostly satisfied by the existing Permissions API (e.g. via navigator.permissions.query). I wrote up some example code here. We (Chrome) have some work to do to fix this for |
As @cfredric mentioned, I believe the spec as-is supports this via its permissions integration. The Chrome implementation work for permission listeners is trackable in the linked crbug task; I do note that both
Accordingly, I think we probably want to leave the spec alone at this point. Closing. |
I would like to request that this bug be reopened. I am happy with delaying until user activation. I'm happy if the query API has any value prior to user activiation. My request is indeed that if the prompt occurs conditionally via some time or usage metric, that I be aware of that so I can decide whether to delay the prompt or contextualize it. If I cannot make this determination, First Party Sets may not have any value for me at all over FedCM (where the user interaction will be more deterministic, and easier to appropriately contextialize) |
Speaking as the engineering owner for YouTube identity and signin, we request an optional "passive" or "silent" option for requestStorageAccessFor which would enable storage access if and only if the user has already pre-consented to it and would not be prompted. This feature request can be seen as comparable to the "prompt=none" option specified in the OAuth RFCs.
We believe First Party Sets will be a valuable way to ensure existing single signon functionality continues to function for users. We would like to use First Party Sets to achieve this goal. However, our experience has shown that, by themselves, the storage access prompts presented by the browsers do not always contextualize or convey the user choice in a way that helps them understand the use case they're being asked to enable. That is, if a user is in a situation where using requestStorageAccessFor would cause a prompt, we would like the opportunity to either explain that prompt to the user beforehand or choose another signing option (such as FedCM).
The text was updated successfully, but these errors were encountered: