Closed Bug 1267587 Opened 8 years ago Closed 8 years ago

Homescreen uses localStorage

Categories

(Firefox OS Graveyard :: Gaia::Homescreen, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cwiiis, Assigned: cwiiis)

References

Details

Attachments

(1 file)

Homescreen uses localStorage for some data that it requires during startup. In the transition branch, homescreen runs as a chrome app, so localStorage is unavailable. We should switch to the shared asyncStorage helper.
Comment on attachment 8745288 [details] [review]
[gaia] Cwiiis:homescreen-removelocalstorage > mozilla-b2g:kanikani

Replace localStorage with asyncStorage.
Attachment #8745288 - Flags: review?(apastor)
After this change, the homescreen starts up and works fine, but datastore isn't available, so there are no apps/sites/pages.
Blocks: 1261028
Comment on attachment 8745288 [details] [review]
[gaia] Cwiiis:homescreen-removelocalstorage > mozilla-b2g:kanikani

Left a comment for removing mozApps references as well, but feel free to do it in a different bug if you want. Thanks!
Attachment #8745288 - Flags: review?(apastor) → review+
Merged: https://github.com/mozilla-b2g/gaia/commit/30d1ab12ad68fb7ac0eabfc575b79d938b881df8
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: