Closed Bug 893120 Opened 6 years ago Closed 6 years ago

mochitest permissions for devicestorage are incorrect

Categories

(Firefox OS Graveyard :: Gaia, defect)

ARM
Gonk (Firefox OS)
defect
Not set

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dhylands, Assigned: dhylands)

References

Details

Attachments

(1 file)

The test_external_apps/mochitest/manifest.webapp has the following lines in it:

    "device-storage:music":{ "access": "readcreate" },
    "device-storage:pictures":{ "access": "readcreate" },

This only gives read and create, and not write permission (so deletes fail).

This bug is to change these to be:

    "device-storage:music":{ "access": "readwrite" },
    "device-storage:pictures":{ "access": "readwrite" },

which will give read, write, and create permissions.

NOTE: When mochitests run on b2g, they run in a content process and thus can't set the special powers preferences to activate the test paths in the code.
Attachment #774812 - Flags: review?(dclarke) → review+
https://github.com/mozilla-b2g/gaia/commit/fd4a4675ec44ab459b49b17606557024b09dbefe
Status: NEW → RESOLVED
Closed: 6 years ago
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Resolution: --- → FIXED
Blocks: 893135
You need to log in before you can comment on or make changes to this bug.