LayoutTests:
authorbeidson <beidson@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 May 2007 17:52:44 +0000 (17:52 +0000)
committerbeidson <beidson@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 May 2007 17:52:44 +0000 (17:52 +0000)
commit062d5d67b9f4e842da3b7609de25ed46e3497460
tree6b2c487553c45892533819b64306a34a91a3bd7f
parentebd0123c4e91ef7f44adb74b31d9ca5e20f511f4
LayoutTests:

        Reviewed by Brady

        - pixel test for http://bugs.webkit.org/show_bug.cgi?id=13759
          REGRESSION (r20182-r20184): Incorrect rendering of multipart images

        Created http/tests/multipart and moved the existing multipart test there.

        * http/tests/misc/multipart-expected.txt: Removed.
        * http/tests/misc/multipart.html: Removed.
        * http/tests/misc/resources/1x1-blue.png: Removed.
        * http/tests/misc/resources/multipart.php: Removed.
        * http/tests/multipart/invalid-image-data-expected.checksum: Added.
        * http/tests/multipart/invalid-image-data-expected.png: Added.
        * http/tests/multipart/invalid-image-data-expected.txt: Added.
        * http/tests/multipart/invalid-image-data.html: Added.
        * http/tests/multipart/resources/2x2-green.png: Added. Shared by both
        multipart tests.
        * http/tests/multipart/resources/abe.png: Added.
        * http/tests/multipart/resources/multipart.php: Added. Shared by both
        multipart tests.
        * http/tests/multipart/stop-crash.html: Renamed from misc/multipart.html.

WebCore:

        Reviewed by Brady

        - fix http://bugs.webkit.org/show_bug.cgi?id=13759
          REGRESSION (r20182-r20184): Incorrect rendering of multipart images

        Test: http/tests/multipart/invalid-image-data.html

        * loader/loader.cpp:
        (WebCore::Loader::didReceiveData): Make a copy of the current part's data
        instead of using the resource data, because the latter is going to be
        overwritten by the new part being received.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21536 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
LayoutTests/ChangeLog
LayoutTests/http/tests/misc/resources/1x1-blue.png [deleted file]
LayoutTests/http/tests/misc/resources/multipart.php [deleted file]
LayoutTests/http/tests/multipart/invalid-image-data-expected.checksum [new file with mode: 0644]
LayoutTests/http/tests/multipart/invalid-image-data-expected.png [new file with mode: 0644]
LayoutTests/http/tests/multipart/invalid-image-data-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/multipart/invalid-image-data.html [new file with mode: 0644]
LayoutTests/http/tests/multipart/resources/2x2-green.png [new file with mode: 0644]
LayoutTests/http/tests/multipart/resources/abe.png [new file with mode: 0644]
LayoutTests/http/tests/multipart/resources/multipart.php [new file with mode: 0644]
LayoutTests/http/tests/multipart/stop-crash-expected.txt [moved from LayoutTests/http/tests/misc/multipart-expected.txt with 100% similarity]
LayoutTests/http/tests/multipart/stop-crash.html [moved from LayoutTests/http/tests/misc/multipart.html with 79% similarity]
WebCore/ChangeLog
WebCore/loader/loader.cpp