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
Assuming we are adding permission (as described by the doc) to gate download/access to language models, what are the default behaviors for shared/dedicated/service workers when they try to use the Translation API?
Does the API require user gesture to trigger permission prompt?
Should dedicated workers directly inherit the access from the document?
Can a shared/dedicated/service worker request for such permission by themself?
The text was updated successfully, but these errors were encountered:
I would prefer not to require user activation, but we should check the precedent of other APIs to see if that's reasonable.
My recollection for workers is that dedicated workers inherit permissions directly from their parent (and, e.g., can cause a prompt in their parent's window). But in most cases shared/service workers cannot do any prompting, and either various permission-requiring APIs do not work there, or they only work if the user has previously granted permission to a window/dedicated worker.
This gets a bit more complicated in specs and in Firefox where it's possible to nest dedicated workers under shared/service workers.
Let me do more research and try to come up with clearer answers.
Assuming we are adding permission (as described by the doc) to gate download/access to language models, what are the default behaviors for shared/dedicated/service workers when they try to use the Translation API?
The text was updated successfully, but these errors were encountered: