summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_storage_impl.cc
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-04 19:11:14 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-04 19:11:14 +0000
commit8d37b18c3c8c5258fd7a94460eb613df37a3155e (patch)
treed48745f0fbbd830d7b305277517aae3747bf6810 /webkit/appcache/appcache_storage_impl.cc
parent3b467d84c402cb2bee271bda2f4babd5d60e648e (diff)
downloadchromium_src-8d37b18c3c8c5258fd7a94460eb613df37a3155e.zip
chromium_src-8d37b18c3c8c5258fd7a94460eb613df37a3155e.tar.gz
chromium_src-8d37b18c3c8c5258fd7a94460eb613df37a3155e.tar.bz2
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
Diffstat (limited to 'webkit/appcache/appcache_storage_impl.cc')
-rw-r--r--webkit/appcache/appcache_storage_impl.cc5
1 files changed, 5 insertions, 0 deletions
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;