One-time permissions in Chrome - Chrome Developers

"Allow this time" is a one-time option for permission grants in Chrome. It will initially be available on desktop only for geolocation, camera, and microphone.

Chrome Developers
@developers Did this get reflected in the Permissions API? If not, we need to fix that.
@slightlyoff @developers Do you exposing the temp nature of the grant via navigator.permissions.query(), having navigator.permissions.request() also trigger this UI, or something else?
@dotproto @developers Both. It should be possible to request a one-time grant and/or grants with limited time windows
@slightlyoff @dotproto @developers The site is asking for a sensitive resource, so it's only appropriate that it can gracefully handle any instance of non-availability. This is honestly one spot where native platforms are way ahead of the Web, because they defaulted to temporary permissions years ago—including removing permissions from apps that haven't been launched for a while. Native app developers handled all of that just fine, and users are all the better for it. There's no reason that the Web ecosystem can't do the same.
@jschuh @slightlyoff @dotproto @developers There was some discussion around adding a new permission state for one-time granted permissions in https://github.com/w3c/permissions/issues/414.
Add another permission state "always-ask" (from one-time grants)? · Issue #414 · w3c/permissions

In browsers that support non-persisted permissions, or maybe doesn't support persisted ones, "granted" isn't always attainable. In these browsers, the strongest available positive signal is that th...

GitHub