Closed
Bug 827740
Opened 12 years ago
Closed 12 years ago
B2G needs to handle IndexedDB quota prompts
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(blocking-basecamp:+, firefox19 wontfix, firefox20 wontfix, firefox21 fixed, b2g18 fixed)
People
(Reporter: bent.mozilla, Assigned: bent.mozilla)
Details
Attachments
(3 files, 2 obsolete files)
3.20 KB,
patch
|
Details | Diff | Splinter Review | |
4.03 KB,
patch
|
Details | Diff | Splinter Review | |
2.88 KB,
patch
|
Details | Diff | Splinter Review |
Talked with everyone today and we decided that v1 can simply deny all quota increase requests. Attached patch should automatically do that.
Attachment #699071 -
Flags: review?(ben)
blocking-basecamp: --- → +
Comment on attachment 699071 [details] [diff] [review]
Patch, v1
Review of attachment 699071 [details] [diff] [review]:
-----------------------------------------------------------------
::: b2g/chrome/content/shell.js
@@ +836,5 @@
> }
>
> +var IndexedDBPromptHelper = {
> + _quotaPrompt: "indexedDB-quota-prompt",
> + _quotaResponse: "indexedDB-quota-response",
r-
@@ +860,5 @@
> + var responseTopic = this._quotaResponse;
> +
> + setTimeout(function() {
> + observer.observe(null, responseTopic,
> + Ci.nsIPermissionManager.Deny_ACTION);
r--
Assignee | ||
Comment 2•12 years ago
|
||
Oops, s/Deny/DENY/
Assignee: nobody → bent.mozilla
Attachment #699071 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #699071 -
Flags: review?(ben)
Attachment #699074 -
Flags: review?(ben)
Assignee | ||
Comment 3•12 years ago
|
||
This patch works, but fabrice wants us to do a real prompt rather than deny automatically. Over to Dale for that :)
Assignee: bent.mozilla → dale
Assignee | ||
Updated•12 years ago
|
Attachment #699074 -
Flags: review?(ben)
Assignee | ||
Updated•12 years ago
|
Component: Gaia::Browser → Gaia::System
QA Contact: nhirata.bugzilla
Assignee | ||
Comment 4•12 years ago
|
||
Ok, nevermind, we're going with this for v1.
Assignee: dale → bent.mozilla
Assignee | ||
Updated•12 years ago
|
Attachment #699074 -
Flags: review?(fabrice)
Comment 5•12 years ago
|
||
Backing up for when we want to implement prompts
Comment 6•12 years ago
|
||
Backing up for when we implement prompts
Comment 7•12 years ago
|
||
Comment on attachment 699074 [details] [diff] [review]
Patch, v1.1
Review of attachment 699074 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with s/var/let
Attachment #699074 -
Flags: review?(fabrice) → review+
Comment 8•12 years ago
|
||
I just addressed the nits and formatted the ptach for checkin
Attachment #699074 -
Attachment is obsolete: true
Updated•12 years ago
|
Keywords: checkin-needed
Comment 9•12 years ago
|
||
Keywords: checkin-needed
Component: Gaia::System → General
Comment 10•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 11•12 years ago
|
||
status-b2g18:
--- → fixed
status-firefox19:
--- → wontfix
status-firefox20:
--- → wontfix
status-firefox21:
--- → fixed
Target Milestone: --- → B2G C4 (2jan on)
Comment 12•11 years ago
|
||
Was there ever a follow-up filed to implement the real prompt for IDB quota increase?
Comment 13•11 years ago
|
||
(In reply to Ben Kelly [:bkelly] from comment #12)
> Was there ever a follow-up filed to implement the real prompt for IDB quota
> increase?
Looks like no. Any app can opt-in to unlimited indexedDB with the "storage" permission (even non privileged ones). So we only limit web sites.
Assignee | ||
Comment 14•11 years ago
|
||
Correct for B2G. Web sites are never allowed to go beyond their first quota limit (it's as if the user always picks the 'deny' option). Apps are in the same boat by default unless they have the 'storage' permission as fabrice notes.
Comment 15•11 years ago
|
||
So if an app needs to work with a large IDB, they should add 'storage' to their manifest even if they don't use the storage API explicitly? That seems a bit unintuitive to me.
See this dev-gaia thread for context:
https://groups.google.com/forum/#!topic/mozilla.dev.gaia/5cbE9o_buhY
Comment 16•11 years ago
|
||
> Correct for B2G. Web sites are never allowed to go beyond their first quota limit (it's as if the user always picks the 'deny' option). Apps are in the same boat by default unless they have the 'storage' permission as fabrice notes.
But we should fix that right? we want more web content to 'just work' and less dependency on people to create fxos only manifests
Yes. A lot of the storage backend is being rewritten currently. Once that's done we should have an easier time getting prompts properly working on B2G.
Comment 18•10 years ago
|
||
The patch to support this seems fairly simple, opened a new bug and will try to see about getting it working for 2.1
https://bugzilla.mozilla.org/show_bug.cgi?id=1048696
You need to log in
before you can comment on or make changes to this bug.
Description
•