You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there. I use window.confirm() opening dialog with an Angular app that allows the user to give permission (again) for the last used file handler loaded from IndexDB, but the behavior of the user activation is inconsistent.
Sometimes one click on the confirm dialog is enough to activate it and successfully pull up the FileSystem permission dialog.
Other times, it requires more mouse events to do that or simply throws Error: User activation is required to request permissions.
Is there a clear guideline as to how to meet the user activation requirement before making the permission requests?
Otherwise, it's hard to implement an opening dialog the needs permission requests. Thanks.
The text was updated successfully, but these errors were encountered:
boan-anbo
changed the title
User Activation unpredictable for IndexDB loaded handler permissions Nov 12, 2020
I'm not the expert on what counts as user activation, but generally that involves the user interacting with the page itself; I don't think dialogs such as window.confirm() necesarilly count for that. whatwg/html#3849 tries to more accurately specify what counts as user activation. In general the HTML spec is probably the better place to discuss what the model behind user activation should look like, while the chromium bug tracker would be better for specific issues with the chrome implementation of it.
Hi there. I use
window.confirm()
opening dialog with an Angular app that allows the user to give permission (again) for the last used file handler loaded from IndexDB, but the behavior of the user activation is inconsistent.Sometimes one click on the confirm dialog is enough to activate it and successfully pull up the FileSystem permission dialog.
Other times, it requires more mouse events to do that or simply throws
Error: User activation is required to request permissions.
Is there a clear guideline as to how to meet the user activation requirement before making the permission requests?
Otherwise, it's hard to implement an opening dialog the needs permission requests. Thanks.
The text was updated successfully, but these errors were encountered: