Bug 927878 - crash in nsDOMOfflineResourceList::ApplicationCacheAvailable(nsIApplicationCache*) when installing an app, r=jduell

This commit is contained in:
Honza Bambas 2013-11-06 16:59:04 +01:00
parent 2cecdbda03
commit 93f11872a4

View File

@ -2005,6 +2005,12 @@ nsOfflineCacheUpdate::NotifyUpdateAvailability(bool updateAvailable)
void
nsOfflineCacheUpdate::AssociateDocuments(nsIApplicationCache* cache)
{
if (!cache) {
LOG(("nsOfflineCacheUpdate::AssociateDocuments bypassed"
", no cache provided [this=%p]", this));
return;
}
nsCOMArray<nsIOfflineCacheUpdateObserver> observers;
GatherObservers(observers);