I want to get the upper limit I can store in indexedDB for storing many large binary files, while StorageManager.estimate() reports much bigger than my real free disk space.
Then I found this answer offered a tip on inspecting chrome://quota-internals/, the page mysteriously shows the correct stat.

This chrome developer blog illustrates how accurate is the estimate, but it doesn't help much.


The Storage API spec says :
The value returned is not based on the actual free space available on the device but rather an amount less than the total capacity of the device and based on several factors related to user engagement. The reasoning behind this is :
This article states that Chrome allows an origin to use up to a maximum of 60% of the total disk space which is consistent with the results I see when querying the quota. There is no way to get the actual free space available. At this time, Chrome will always report the quota as %60 of the total disk space except in certain situations like when browsing in Incognito Mode. Other browsers may behave differently as it is up to the browser vendors to decide exactly how this feature is implemented.