Bug 796045 - Prepopulate apps cache for specific mozbrowser frames. r=fabrice

This commit is contained in:
Alexandre Poirot 2012-11-07 20:48:56 -05:00
Родитель 7bd581fd2e
Коммит 8ca4290433
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -874,7 +874,7 @@ this.DOMApplicationRegistry = {
.getService(Ci.nsIOfflineCacheUpdateService);
let docURI = Services.io.newURI(aManifest.fullLaunchPath(), null, null);
let cacheUpdate = aProfileDir ? updateService.scheduleCustomProfileUpdate(appcacheURI, docURI, aProfileDir)
: updateService.scheduleUpdate(appcacheURI, docURI, null);
: updateService.scheduleAppUpdate(appcacheURI, docURI, aApp.localId, false);
cacheUpdate.addObserver(new AppcacheObserver(aApp), false);
if (aOfflineCacheObserver) {
cacheUpdate.addObserver(aOfflineCacheObserver, false);