Last Comment Bug 711358 - [b2g] Add indexedDB-unlimited permission to pre-installed apps
: [b2g] Add indexedDB-unlimited permission to pre-installed apps
Status: RESOLVED FIXED
[inbound]
:
Product: Core
Classification: Components
Component: General (show other bugs)
: Trunk
: All All
: -- normal (vote)
: mozilla12
Assigned To: Vivien Nicolas (:vingtetun) (:21) - (NOT reading bugmails, needinfo? please)
:
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-16 02:23 PST by Vivien Nicolas (:vingtetun) (:21) - (NOT reading bugmails, needinfo? please)
Modified: 2011-12-26 18:00 PST (History)
5 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Patch (951 bytes, patch)
2011-12-16 02:23 PST, Vivien Nicolas (:vingtetun) (:21) - (NOT reading bugmails, needinfo? please)
cjones.bugs: review+
Details | Diff | Splinter Review

Description Vivien Nicolas (:vingtetun) (:21) - (NOT reading bugmails, needinfo? please) 2011-12-16 02:23:25 PST
Created attachment 582217 [details] [diff] [review]
Patch

We are still experimenting with indexedDB and for now there is no UI to show when we're hitting the quota limit. Until we figure out what is a reasonable size apps shoulb be allowed to do save as much as possible.
Comment 1 Chris Jones [:cjones] inactive; ni?/f?/r? if you need me 2011-12-22 09:10:14 PST
Comment on attachment 582217 [details] [diff] [review]
Patch

Let's file a followup for "real" quota management, but here's how I think it should work:

Trying to statically assign a quota to all apps is basically unsolvable.  Even a soft quota, that generates a "Warning" dialog when the app hits it, is annoying and bad UX IMHO.  What I think we should do is instead expose good tools for showing how much storage each app is using, like what existing OS's do.  Then when storage gets low generally, we should present users with a general, unobtrusive "Storage is low" notification, and allow them to use simple UI to revoke storage for apps that they think are using too much data.  In theory, this means the quota for apps evolves to, "as much as the user thinks it should be using", which is optimal.
Comment 2 Chris Jones [:cjones] inactive; ni?/f?/r? if you need me 2011-12-22 09:11:11 PST
(And apps that repeatedly violate their user-assigned quota get uninstalled, and lose popularity.)
Comment 3 Vivien Nicolas (:vingtetun) (:21) - (NOT reading bugmails, needinfo? please) 2011-12-26 06:11:32 PST
http://hg.mozilla.org/integration/mozilla-inbound/rev/f8c20866035f
Comment 4 Ed Morley [:emorley] 2011-12-26 18:00:28 PST
https://hg.mozilla.org/mozilla-central/rev/f8c20866035f

Note You need to log in before you can comment on or make changes to this bug.