2010-07-01 Andy Estes <aestes@apple.com>
authoraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Jul 2010 22:17:03 +0000 (22:17 +0000)
committeraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Jul 2010 22:17:03 +0000 (22:17 +0000)
commit59586489d15114d4fe1fd4759195f0cd97c53f7c
tree66674512eb6549c1f7e86fb4b0ffc658a64fcea5
parentd4ab483714cffc161ac831ee257bf3ee15bbcbe0
2010-07-01  Andy Estes  <aestes@apple.com>

        Reviewed by Darin Adler.

        <rdar://problem/8113003> Correctly fire beforeload events for images
        added to the DOM using .innerHTML.
        https://bugs.webkit.org/show_bug.cgi?id=40919

        Test: fast/dom/beforeload/image-before-load-innerHTML.html

        * html/LegacyHTMLDocumentParser.cpp:
        (WebCore::LegacyHTMLDocumentParser::write): Do not fire synchronous
        image beforeload events immediately after parsing a document fragment.
        Let the events fire later, giving the fragment time to potentially be
        inserted into the document.
2010-07-01  Andy Estes  <aestes@apple.com>

        Reviewed by Darin Adler.

        <rdar://problem/8113003> Test that beforeload fires correctly on images
        inserted into the DOM using .innerHTML.
        https://bugs.webkit.org/show_bug.cgi?id=40919

        * fast/dom/beforeload/image-before-load-innerHTML-expected.txt: Added.
        * fast/dom/beforeload/image-before-load-innerHTML.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@62302 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/beforeload/image-before-load-innerHTML-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/beforeload/image-before-load-innerHTML.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/LegacyHTMLDocumentParser.cpp