Use the offline cache to load applications

RESOLVED FIXED

Status

Firefox OS
General
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: vingtetun, Assigned: vingtetun)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

Created attachment 606306 [details] [diff] [review]
Patch

The attached patch remove httpd.js and all the ramifications in the code to load Gaia from:
 http://localhost/homescreen/homescreen.html

All the associated data and the necessary applications are load from the application cache built by https://github.com/andreasgal/gaia/pull/799

It still miss a few pieces like the glue between Gaia and the b2g build system or even a way to tell Gecko where it is supposed to look for the application cache.
To start the application cache built by Gaia can be copied to the profile and this should be enough.

By the way, landing this patch without adding a copy of the application cache first to B2G will break Gaia. I think it also worth checking with the rest of the people that use B2G how they are loading their front-end.
Attachment #606306 - Flags: review?(fabrice)
Comment on attachment 606306 [details] [diff] [review]
Patch

Review of attachment 606306 [details] [diff] [review]:
-----------------------------------------------------------------

Great!
Attachment #606306 - Flags: review?(fabrice) → review+
Created attachment 606618 [details] [diff] [review]
Serve the application cache from /data/local/ on b2g

This additional patch serve the application cache from /data/local/.
Attachment #606618 - Flags: review?
Attachment #606618 - Flags: review? → review?(fabrice)
Those patches should be landed with https://github.com/andreasgal/gaia/pull/822 and https://github.com/andreasgal/gaia/pull/824

I think the make install-gaia target of B2G/Makefile should be also changed to call the same rule in the Gaia Makefile.
Attachment #606618 - Flags: review?(fabrice) → review+
pushed with a updates to the new domain name:
https://hg.mozilla.org/mozilla-central/rev/1699897f0c05
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.