Unlimited storage for Indexeddb / appCache

Think CEF could benefit from a new feature or capability? Discuss CEF feature requests here.

Unlimited storage for Indexeddb / appCache

Postby koenvd » Fri Dec 13, 2019 4:18 pm

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
koenvd
Newbie
 
Posts: 1
Joined: Fri Dec 13, 2019 3:45 pm

Re: Unlimited storage for Indexeddb / appCache

Postby Czarek » Mon Dec 16, 2019 8:59 am

Use CefRequestHandler::OnQuotaRequest, that's the purpose of the function.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. I'm available for contract work, see my resume.
User avatar
Czarek
Virtuoso
 
Posts: 1829
Joined: Sun Nov 06, 2011 2:12 am


Return to Feature Request Forum

Who is online

Users browsing this forum: No registered users and 1 guest