Permission API: "persistent-storage" property

The "persistent-storage" property is a new permission for the Permission API. The permission state can already be queried with navigator.storage.persisted(), with this change navigator.permissions.query({name:"persistent-storage"}) can be used as well.

Comments

In Chrome, when persisted() reports false the permission API will report "prompt", and when persisted() reports true the permission API will report "granted"

Documentation

Specification

Established standard

Status in Chromium

Blink>Storage


Enabled by default (tracking bug) in:

  • Chrome for desktop release 71
  • Chrome for Android release 71
  • Android WebView release 71
  • Opera release 58
  • Opera for Android release 58

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • Shipped
  • No public signals
  • No public signals
  • No signals

Owner

Last updated on 2018-08-31