Issue metadata
Sign in to add a comment
|
Make permissions.query return the value that reflects whether the current context can prompt for/use permission |
||||||||||||||||||||||
Issue descriptionCurrently the API in Chrome just returns whether a top-level window can prompt for/use permission. This is useful in some specific circumstances (e.g. for notification requests that happen in popups). But it's more consistent to return the result for the current context. Action items: 1) Decide whether to make an explicit exception for workers/worklets/SWs; if not, then update them to always return "denied" instead of "prompt" for all permissions that require prompting. 2) Update Permissions API spec to clarify this. 3) Update Notifications spec to refer to Permissions API spec for getting permission state. 4) Update Notification::permission & NotificationPermissionContext::DecidePermission to return "denied" instead of "prompt" in iframes (ditto for any similar permissions?). 5) Gather developer feedback on whether we need a new API to predict permission state in new popups.
,
Aug 4 2017
raymes@ what's the goal of this change?
,
Aug 4 2017
,
Aug 30 2017
See the thread here: g/chrome-permissions-team/eTLqU9H0K8A from which the AIs are copied.
,
Nov 10 2017
,
Feb 18 2018
,
Nov 5
This looks to me like a feature request as it's an improvement proposal of the current API rather than fixing a bug in the current API. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by dominickn@chromium.org
, Aug 3 2017