Closed Bug 848411 Opened 7 years ago Closed 4 years ago
Permission database not setup correctly for b2g
Perhaps this is all working correctly, but is permission.sqlite not used from gaia at all, but is it using a different permissions database or something?
Ok, some relevant info from bug 846090 about this: From irc: [22:10] <gwagner> mw22: the appId has to match. otherwise we don't allow any permission [22:11] <gwagner> mw22: I see that you always use appId 0 my question, how can you know the appId? [23:00] <fabrice> mw22: it can ba anything, but it has to match what's in the webapps.json The permission database which is written here (for allowXULXBL): http://mxr.mozilla.org/mozilla-central/source/testing/mozbase/mozprofile/mozprofile/permissions.py#258 So it has to add the appId of the mochitest app in order for this to work. I tried to get something working with: https://bug846090.bugzilla.mozilla.org/attachment.cgi?id=790182 (from bug 846090, comment 27) In bug 846090, I added a workaround for this, that allows the allowXULXBL permission to work. For reftests, a similar workaround was added here: http://mxr.mozilla.org/mozilla-central/source/layout/tools/reftest/b2g_start_script.js#33 These workarounds could be removed once this bug would be fixed, properly.
Summary: Setting up permission database not working for b2g mochitest? → Permission database not setup correctly for b2g
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.