DataStorage API fails with security error in hosted apps

RESOLVED INVALID

Status

()

Core
DOM
RESOLVED INVALID
4 years ago
4 years ago

People

(Reporter: daleharvey, Assigned: daleharvey)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Comment hidden (empty)
(Assignee)

Comment 1

4 years ago
Can reproduce by by patching gaia with https://github.com/daleharvey/gaia/tree/rocketbar-places

Then at the shell 

/Volumes/firefoxos/gaia$ DEBUG=1 DESKTOP=0 make
/Volumes/firefoxos/gaia$ firefox -profile /Volumes/firefoxos/gaia/profile-debug http://test-agent.gaiamobile.org:8080/

navigator.getDataStores('places').then(null, function(err) { console.log(err); });

will fail in the console, with DESKTOP=1 it passes, the only difference is the screenreader extension being installed
(Assignee)

Updated

4 years ago
Assignee: nobody → dale
Datastore is only available in certified apps (bug 942639).
UX is working on the proper security model for 1.4.
(Assignee)

Comment 3

4 years ago
There is a preferences (enabled in the DEBUG mode when building the profile) to use it in hosted apps, dom.testing.datastore_enabled_for_hosted_apps

As mentioned, this test passes when the screen reader is installed
(Assignee)

Comment 4

4 years ago
Was an issue with how the frames were created and browser helper extension in gaia profiles
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.