W3cubDocs

/DOM

StorageManager

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.

The StorageManger interface of the the Storage API provides an interface for managing persistance permissions and estimating available storage. You can get a reference to this interface using either navigator.storage or WorkerNavigator.storage.

Methods

StorageManager.estimate()
Returns a StorageEstimate object containing usage and quota numbers for your origin.
StorageManager.persist()
Returns a Promise that resolves to true if the user agent is able to persist your site's storage.
StorageManager.persisted()
Returns a Promise that resolves to true if persistence has already been granted for your site's storage.
Specification Status Comment
Storage
The definition of 'StorageManger' in that specification.
Living Standard Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Microsoft Edge Opera Safari (WebKit)
Basic support 55.0 51 (51)[1] ? ? 42 ?
Feature Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support No support 55.0 51.0 (51)[1] ? ? 42 ? 55.0

[1] Firefox 51 introduced NavigatorStorage, navigator.storage, and the StorageManager.estimate() method. These are enabled by default in nightly builds but disabled by default in all other builds. You can enable these features by setting the preference dom.storageManager.enabled to true.

© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/StorageManager