IndexedDB Custom Permissions

Good afternoon everyone

I read on this page [Using IndexedDB]: https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Using_IndexedDB

that the browser will prompt the user to give permission to create indexedDB, and the user can deny permission. See quote below:

The most likely problem is that the user chose not to grant the web application permission to create the database. One of the main design goals of IndexedDB is the ability to store large amounts of data for offline use. (To learn more about how much storage you can have for each browser, see Storage Limits.)

Obviously, browsers don't want some ad network or malicious website to pollute your computer, so browsers ask the user the first time any given web application tries to open IndexedDB for storage. The user can grant or deny access.

However, when testing my localhost, neither Firefox nor Google Chrome asked me for permission. And the db was created successfully (it seems.)

So is this article out of date? Or is it because I am testing on localhost? or something else I'm missing?

respectfully

+3


source to share


1 answer


The article is out of date. Depending on how you use IndexedDB, you will never get a hint , but this is browser dependent and may change in the future.



+4


source







All Articles