The default bug view has changed. See this FAQ.

Set IndexedDB permission settings during installation

VERIFIED FIXED in Firefox 16

Status

Firefox Graveyard
Webapp Runtime
P1
normal
VERIFIED FIXED
5 years ago
a year ago

People

(Reporter: sicking, Assigned: myk)

Tracking

unspecified
Firefox 16

Details

(Whiteboard: [qa!])

Attachments

(1 attachment)

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.
(Assignee)

Comment 3

5 years ago
If a topapp was running into this issue, I'd make it a blocker.  Otherwise, it's "merely" a very very very much want!
Priority: -- → P1
Target Milestone: --- → Firefox 15

Updated

5 years ago
blocking-kilimanjaro: --- → ?

Updated

5 years ago
blocking-kilimanjaro: ? → +
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.
(Assignee)

Updated

5 years ago
Target Milestone: Firefox 15 → ---
(Assignee)

Updated

5 years ago
Assignee: nobody → myk
Status: NEW → ASSIGNED
Target Milestone: --- → Firefox 16
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
(Assignee)

Comment 7

5 years ago
Created attachment 635536 [details] [diff] [review]
patch v1: sets permissions
Attachment #635536 - Flags: review?(felipc)
Attachment #635536 - Flags: review?(felipc) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/08d44c70e1cb
comment 6 I believe should allow us to verify this fix
Whiteboard: [qa+]
https://hg.mozilla.org/mozilla-central/rev/08d44c70e1cb
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
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.

Updated

5 years ago
Whiteboard: [qa+]

Updated

5 years ago
Depends on: 767807
Whiteboard: [qa verification blocked]

Updated

5 years ago
QA Contact: jsmith
Actually I wasn't right, this is possible to verify. I just have to do the testing on the origin of the app.
Whiteboard: [qa verification blocked] → [qa+]

Updated

5 years ago
Status: RESOLVED → VERIFIED
Whiteboard: [qa+] → [qa!]
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.