WebCore:
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 May 2008 22:44:49 +0000 (22:44 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 May 2008 22:44:49 +0000 (22:44 +0000)
commit229957c9359cfb4dff223fa3668cb1c23e7b56a9
tree899a5951eb92e7147769131070815ddc1db6c298
parent9f94cb1a0353fb5aacccc95d0322cb7f8c330915
WebCore:

2008-05-14  Anders Carlsson  <andersca@apple.com>

        Reviewed by Adam.

        Don't try to store the resource data if it's empty.

        * loader/appcache/ApplicationCacheStorage.cpp:
        (WebCore::ApplicationCacheStorage::store):

LayoutTests:

2008-05-14  Anders Carlsson  <andersca@apple.com>

        Reviewed by Adam.

        Add test where a manifest references an empty file.

        * http/tests/appcache/manifest-with-empty-file.html: Added.
        * http/tests/appcache/resources/empty.txt: Added.
        * http/tests/appcache/resources/manifest-with-empty-file.manifest: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@33462 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/appcache/manifest-with-empty-file.html [new file with mode: 0644]
LayoutTests/http/tests/appcache/resources/empty.txt [new file with mode: 0644]
LayoutTests/http/tests/appcache/resources/manifest-with-empty-file.manifest [new file with mode: 0644]
WebCore/ChangeLog
WebCore/loader/appcache/ApplicationCacheStorage.cpp