Closed Bug 1181329 Opened 9 years ago Closed 9 years ago

[User Story] Make DataStore available to privileged homescreen apps

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: benfrancis, Assigned: baku)

References

Details

(Keywords: dev-doc-complete, feature)

User Story

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

Attachments

(1 file, 1 obsolete file)

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
Attached patch ds.patchSplinter Review
Attachment #8630729 - Flags: review?(fabrice)
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+
https://hg.mozilla.org/mozilla-central/rev/3efa3b65e755
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Thanks Andrea, that was super fast!
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!
Depends on: 1200851
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: