Closed Bug 1061165 Opened 10 years ago Closed 6 years ago

Fully clean Gecko HTTP cache before installing B2G fota updates

Categories

(Firefox OS Graveyard :: General, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: pehrsons, Unassigned)

References

(Depends on 1 open bug)

Details

See bug 1058511 for the reasons why we need this.

In short; incremental FOTAs will fail if there is not enough space to backup libxul.so (~27MB) on /cache.

Also; CacheStorageService::clear() is async, so there's a race condition between rebooting into recovery and deleting the old HTTP cache files. Sometimes it reboots before a sufficient amount of files are deleted.

The AOSP updater can currently handle this when generating an incremental FOTA using https://github.com/mozilla-b2g/platform_build and one of the (currently) three b2g- prefixed branches.

To avoid future surprises though, it would be nice to clean the HTTP cache properly before rebooting into recovery for a FOTA install.
Blocks: 1058511
Depends on: 1061182
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.