LayoutTests:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Aug 2006 15:22:52 +0000 (15:22 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Aug 2006 15:22:52 +0000 (15:22 +0000)
commit26e05734c031d9611ddbbb5494710f99335142f9
tree7fbced9045982e47afa0f1adc63ff9bfe27b9f62
parent45e23c226193450b94a450e43cec1f34ce913e15
LayoutTests:

        Reviewed by Anders.

        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=10202
          REGRESSION: Repro crash when loading an empty image document

        * fast/tokenizer/image-empty-crash-expected.txt: Added.
        * fast/tokenizer/image-empty-crash.html: Added.

WebCore:

        Reviewed by Anders.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10202
          REGRESSION: Repro crash when loading an empty image document

        Test: fast/tokenizer/image-empty-crash.html

        * loader/ImageDocument.cpp:
        (WebCore::ImageTokenizer::stopParsing): Added null check for m_imageElement.
        (WebCore::ImageTokenizer::finish): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15766 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/tokenizer/image-empty-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/tokenizer/image-empty-crash.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/loader/ImageDocument.cpp