Closed Bug 1181329 Opened 6 years ago Closed 6 years ago
[User Story] Make Data
Store available to privileged homescreen apps
As a third party developer I would like to create a homescreen app which can access the same data stores as the built-in homescreen app so I can provide equivalent functionality
In order to allow third party replaceable homescreens we need the Data Store API to be made available to third party privileged apps which identify themselves with the "homescreen" role in their manifest. This will enable access to the bookmarks and places data stores which the Gaia's built-in homescreen can access. Eventually we would like to deprecate the data stores in favour of a more webby solution, but for the 2.5 release we need to unblock replaceable homescreens by making the DataStore available under some specific circumstances. That is apps which: * Are of type "privileged" (have been reviewed and signed) * Have the "homescreen" role in their manifest * Are set as the current homescreen in Settings
fyi, here's how to check if a document is from the current homescreen: http://mxr.mozilla.org/mozilla-central/source/dom/apps/Webapps.jsm?rev=f848e6877ca4#1301
Comment on attachment 8630729 [details] [diff] [review] ds.patch Review of attachment 8630729 [details] [diff] [review]: ----------------------------------------------------------------- We should test that, but that can go in a followup.
Attachment #8630729 - Flags: review?(fabrice) → review+
Assignee: nobody → amarchesini
Thanks Andrea, that was super fast!
I guess this page needs changing? https://developer.mozilla.org/en-US/docs/Web/API/DataStore
Comment on attachment 8653422 [details] [review] [gaia] Cwiiis:bug1198212-fix-homescreen-intermittents > mozilla-b2g:master Wrong bug...
Attachment #8653422 - Attachment is obsolete: true
I have written some details on what a 3rd party manifest would need to include here: https://developer.mozilla.org/en-US/docs/Web/API/Data_Store_API/Using_the_Data_Store_API#Privileged_homescreen_apps I've also added a note at the top of https://developer.mozilla.org/en-US/docs/Web/API/DataStore A quick tech review would be great; thanks!
You need to log in before you can comment on or make changes to this bug.