Page 1 of 1

Unlimited storage for Indexeddb / appCache

PostPosted: Fri Dec 13, 2019 4:18 pm
by koenvd
I'm wondering if with CEF there exist the possibility to give unlimited storage quota to a specific origin. And this for indexeddb, the service worker app cache, localstorage, etc ...

I saw some discussions about the CefRequestHandler::OnQuotaRequest method but I'm not completely sure it's correct way of achieving that goal. I understand it's related to navigator.webkitPersistentStorage.requestQuota that I guess need to be called upfront before starting to cache resources in the app cache.

Also I'm not sure if this method will be triggered again when the app cache is full and I receive a 'QuotaExceeded' error when adding an item to the app cache?

So what I'm looking for is a similar mechanism as the 'unlimitedStorage' option for Chrome apps as mentioned here: https://developer.chrome.com/apps/declare_permissions

Re: Unlimited storage for Indexeddb / appCache

PostPosted: Mon Dec 16, 2019 8:59 am
by Czarek
Use CefRequestHandler::OnQuotaRequest, that's the purpose of the function.