While setting up the profile for the XULRunner app, we should set the appropriate settings in the permissions manager to grant the app unlimited access to IndexedDB.
Specifically, the two permissions that should be set are "indexedDB" and "indexedDB-unlimited". They should both be set to nsIPermissionManager.ALLOW_ACTION for the origin of the app.
Jonas - What's the priority for getting this implemented? Should this block the first release of the webapp runtime? Is it high priority? Nice to have?
That's not my decision, but rather the webapps drivers.
Personally I think it's a blocker given the low cost to high value ratio.
If a topapp was running into this issue, I'd make it a blocker. Otherwise, it's "merely" a very very very much want!
Fabrice, didn't you already do this? Or did you do some other settings but not this one?
(In reply to Jonas Sicking (:sicking) from comment #4)
> Fabrice, didn't you already do this? Or did you do some other settings but
> not this one?
We do that with a hack in b2g.js only. We still need to do it cleanly at the end of the install process.
Reproducible test case for this:
1. Load https://touch.betfair.com/ in the web runtime
Expected - app should finish loading and allow indexed DB by default without a prompt
Actual - app gets stuck during load
Created attachment 635536 [details] [diff] [review]
patch v1: sets permissions
comment 6 I believe should allow us to verify this fix
comment 6 actually will not verify this bug, as it's related to app cache. Need to find another way to do it.
What's the easiest way to verify this bug such that it demonstrates unlimited use of indexed DB? Is there a good example of a top app that does this? An app someone else built? Or should I create my own here?
(In reply to Jason Smith [:jsmith] from comment #12)
> What's the easiest way to verify this bug such that it demonstrates
> unlimited use of indexed DB? Is there a good example of a top app that does
> this? An app someone else built? Or should I create my own here?
Found a way to test this. I used Marco's app for indexed DB and checked if anything launched, but it failed for the web runtime - https://developer.mozilla.org/en-US/demosdetail/elibri/launch. Verification of this is blocked by bug 767807.
Actually I wasn't right, this is possible to verify. I just have to do the testing on the origin of the app.