WebCore:
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 May 2008 18:14:39 +0000 (18:14 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 May 2008 18:14:39 +0000 (18:14 +0000)
commita1a500bf5b328bf594b0ca085de19ee853666905
tree539395cac4f4eacaa17fdaba7172a8428c6cca8b
parentfadf8b97c50b7afb02286ac25d7e0e32ec2b301e
WebCore:

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: https://svn.webkit.org/repository/webkit/trunk@33378 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/appcache/navigating-away-while-cache-attempt-in-progress-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/appcache/navigating-away-while-cache-attempt-in-progress.html [new file with mode: 0644]
LayoutTests/http/tests/appcache/resources/navigating-away-while-cache-attempt-in-progress.manifest [new file with mode: 0644]
LayoutTests/http/tests/appcache/resources/slow-resource.php [new file with mode: 0644]
WebCore/ChangeLog
WebCore/loader/appcache/ApplicationCacheGroup.cpp
WebCore/loader/appcache/ApplicationCacheGroup.h