Closed Bug 1066013 Opened 10 years ago Closed 10 years ago

Initialize appCache path

Categories

(Core :: Networking: Cache, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla36
blocking-b2g 2.1+
Tracking Status
firefox34 --- wontfix
firefox35 --- wontfix
firefox36 --- fixed
b2g-v2.1 --- fixed
b2g-v2.2 --- fixed

People

(Reporter: zoran.jovanovic, Assigned: zoran.jovanovic)

Details

(Whiteboard: [Tako_Blocker])

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 Steps to reproduce: Preload appcache for apps pre-installed to /data partition in FFOS, e.g. with eng build of FFOS. Actual results: appCache path on app object not initialized resulting in failed cache installation. Expected results: Cache should be installed and apps should load offline.
Flags: needinfo?(jonas)
Flags: needinfo?(honzab.moz)
Flags: needinfo?(fabrice)
Sadly I don't know this code.
Flags: needinfo?(jonas)
Me neither.
Flags: needinfo?(honzab.moz)
We used to set cachePath in gaia's build system when creating the webapps.json file that ends up in /system. Your patch will add an appCache property to all apps even if they don't need it, and so we don't bail out early in OfflineCacheInstaller.installCache() anymore (we exit at !cacheDir.exists() though so it's not too terrible either). I think we should rather fix updateOfflineCacheForApp() to check if manifest.fullAppcachePath() exists, and if so call OfflineCacheInstaller.installCache({ cachePath: app.cachePath || app.basePath, ... });
Flags: needinfo?(fabrice)
Fixes Fabrice's comments.
Attachment #8487867 - Attachment is obsolete: true
Attachment #8507060 - Flags: review?(fabrice)
Attachment #8507060 - Flags: review?(fabrice) → review+
Whiteboard: [Tako_Blocker]
[Blocking Requested - why for this release]: partner would like to have this fix in 2.1, raise 2.1? for triage.
blocking-b2g: --- → 2.1?
fabrice, can you please uplift if its low risk ?
blocking-b2g: 2.1? → 2.1+
Flags: needinfo?(fabrice)
Attachment #8507060 - Flags: approval-mozilla-b2g34+
Flags: needinfo?(fabrice)
Assignee: nobody → zoran.jovanovic
hi Bhavana, since both review+ and uplift approval granted, could you please let me know when it will be uplifted to 2.1?
Flags: needinfo?(bbajaj)
(In reply to Francis Lee [:frlee] from comment #7) > hi Bhavana, > > since both review+ and uplift approval granted, could you please let me know > when it will be uplifted to 2.1? The patch was not even landed... People need to do diligence to ensure their work ends up in the tree.
Flags: needinfo?(bbajaj)
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: