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