-
andersca@apple.com authored
2008-05-13 Anders Carlsson <andersca@apple.com> Reviewed by Darin. Don't crash when a document loader is destroyed while an initial caching attempt is in progress. * loader/appcache/ApplicationCacheGroup.cpp: (WebCore::ApplicationCacheGroup::~ApplicationCacheGroup): Stop loading. (WebCore::ApplicationCacheGroup::stopLoading): New method that stops a cache update. (WebCore::ApplicationCacheGroup::documentLoaderDestroyed): Delete ourselves here. * loader/appcache/ApplicationCacheGroup.h: LayoutTests: 2008-05-13 Anders Carlsson <andersca@apple.com> Reviewed by Darin. Add testcase. * http/tests/appcache/navigating-away-while-cache-attempt-in-progress-expected.txt: Added. * http/tests/appcache/navigating-away-while-cache-attempt-in-progress.html: Added. * http/tests/appcache/resources/navigating-away-while-cache-attempt-in-progress.manifest: Added. * http/tests/appcache/resources/slow-resource.php: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33378 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ec2dd2c3