Bug 1066013 - Initialize appCache path r=fabrice

This commit is contained in:
Zoran Jovanovic 2014-11-12 11:36:36 -08:00
parent ac013691ed
commit 085151077e

View File

@ -471,13 +471,16 @@ this.DOMApplicationRegistry = {
this._readManifests([{ id: aId }]).then((aResult) => {
let manifest =
new ManifestHelper(aResult[0].manifest, app.origin, app.manifestURL);
OfflineCacheInstaller.installCache({
cachePath: app.cachePath,
appId: aId,
origin: Services.io.newURI(app.origin, null, null),
localId: app.localId,
appcache_path: manifest.fullAppcachePath()
});
let fullAppcachePath = manifest.fullAppcachePath();
if (fullAppcachePath) {
OfflineCacheInstaller.installCache({
cachePath: app.cachePath || app.basePath,
appId: aId,
origin: Services.io.newURI(app.origin, null, null),
localId: app.localId,
appcache_path: fullAppcachePath
});
}
});
},