Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The NavigatorStorage.storage
read-only property returns the singleton StorageManager
object used to access the overall storage capabilities of the browser for the current site or app. The returned object lets you examine and configure persistence of data stores and learn approximately how much more space your browser has available for local storage use.
var storageManager = navigator.storage;
A StorageManager
object you can use to maintain persistence for stored data, as well as to determine roughly how much room there is for data to be stored.
Specification | Status | Comment |
---|---|---|
Storage The definition of 'navigator.storage' in that specification. | Living Standard | Initial definition. |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Microsoft Edge | Opera | Safari (WebKit) |
---|---|---|---|---|---|---|
Basic support | 55 |
51 (51)[1] 57 (57)[2] | ? | ? | 42 | ? |
Feature | Android Webview | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | ? | 55 | 51.0 (51)[1] | ? | 42 | ? |
[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
.
[2] The Storage API is implemented and enabled by default in Firefox 57 Desktop.
© 2005–2018 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/navigatorStorage/storage