From 8d37b18c3c8c5258fd7a94460eb613df37a3155e Mon Sep 17 00:00:00 2001 From: "michaeln@chromium.org" Date: Mon, 4 Jan 2010 19:11:14 +0000 Subject: Fixes to address the failing appcache/remove-cache.html layout tests. BUG=31300 TEST=yes, layout test Review URL: http://codereview.chromium.org/524014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35465 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/appcache/appcache_storage_impl.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'webkit/appcache/appcache_storage_impl.cc') diff --git a/webkit/appcache/appcache_storage_impl.cc b/webkit/appcache/appcache_storage_impl.cc index 579a6bf..cfa3be9 100644 --- a/webkit/appcache/appcache_storage_impl.cc +++ b/webkit/appcache/appcache_storage_impl.cc @@ -583,6 +583,11 @@ void AppCacheStorageImpl::MakeGroupObsoleteTask::RunCompleted() { if (success_) { storage_->origins_with_groups_.swap(origins_with_groups_); group_->set_obsolete(true); + + // Also remove from the working set, caches for an 'obsolete' group + // may linger in use, but the group itself cannot be looked up by + // 'manifest_url' in the working set any longer. + storage_->working_set()->RemoveGroup(group_); } FOR_EACH_DELEGATE(delegates_, OnGroupMadeObsolete(group_, success_)); group_ = NULL; -- cgit v1.1