How to simulate IndexedDB QuotaExceededErrors?

RESOLVED INVALID

Status

()

Core
DOM: IndexedDB
RESOLVED INVALID
7 months ago
7 months ago

People

(Reporter: Jukka Jylänki, Unassigned)

Tracking

55 Branch
Points:
---

Firefox Tracking Flags

(firefox55 affected)

Details

(Reporter)

Description

7 months ago
The site https://s3.amazonaws.com/mozilla-games/ZenGarden/EpicZenGarden.html stores 205MB of assets to IndexedDB. People have been reporting that they are unable to run the page, and console logs print out "QuotaExceededError" exceptions.

I want to visit the site and artificially cause QuotaExceededErrors on my dev box to be able to verify that the UX flow for the page is what I want for that scenario. How can I adjust my Firefox Nightly to make IndexedDB start failing on QuotaExceededErrors? (i.e. reduce the quota down to 50MB or so?)

Also, is there a way to programmatically check how much quota I have left available?
(In reply to Jukka Jylänki from comment #0)
> The site https://s3.amazonaws.com/mozilla-games/ZenGarden/EpicZenGarden.html
> stores 205MB of assets to IndexedDB. People have been reporting that they
> are unable to run the page, and console logs print out "QuotaExceededError"
> exceptions.
> 
> I want to visit the site and artificially cause QuotaExceededErrors on my
> dev box to be able to verify that the UX flow for the page is what I want
> for that scenario. How can I adjust my Firefox Nightly to make IndexedDB
> start failing on QuotaExceededErrors? (i.e. reduce the quota down to 50MB or
> so?)

This preference perhaps? http://searchfox.org/mozilla-central/source/dom/quota/ActorsParent.cpp#94 

> 
> Also, is there a way to programmatically check how much quota I have left
> available?

I think you could get usage and quota by this API https://bugzilla.mozilla.org/show_bug.cgi?id=1267941 

Thanks for reaching out for this question, however Bugzilla is a place to report a bug or raise a feature request discussion, it isn't really a right place to ask this kind of question. Mailing list like dev-platform or irc channels are the appropriate place for this purpose instead. I am going to close this as INVALID as this is not a real bug. Thanks for understanding.
Status: NEW → RESOLVED
Last Resolved: 7 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.