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 1de8e395e8
commit 0748f4b88a

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);