Closed Bug 757678 Opened 12 years ago Closed 12 years ago

Set IndexedDB permission settings during installation

Categories

(Firefox Graveyard :: Webapp Runtime, defect, P1)

defect

Tracking

(blocking-kilimanjaro:+)

VERIFIED FIXED
Firefox 16
blocking-kilimanjaro +

People

(Reporter: sicking, Assigned: myk)

References

Details

(Whiteboard: [qa!])

Attachments

(1 file)

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!
Priority: -- → P1
Target Milestone: --- → Firefox 15
blocking-kilimanjaro: --- → ?
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.
Target Milestone: Firefox 15 → ---
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
Attachment #635536 - Flags: review?(felipc)
Attachment #635536 - Flags: review?(felipc) → review+
comment 6 I believe should allow us to verify this fix
Whiteboard: [qa+]
https://hg.mozilla.org/mozilla-central/rev/08d44c70e1cb
Status: ASSIGNED → RESOLVED
Closed: 12 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.
Whiteboard: [qa+]
Depends on: 767807
Whiteboard: [qa verification blocked]
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+]
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.

Attachment

General

Created:
Updated:
Size: