2010-09-08 Adam Barth <abarth@webkit.org>
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Sep 2010 22:46:53 +0000 (22:46 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Sep 2010 22:46:53 +0000 (22:46 +0000)
commitcbe4b6bb4a0d923446289495d202be88af67e110
tree628674c99b9fe58e2ecdf08f63685d08c9edbc28
parentaf6cd42ec569e878cac5a5000049f8718e11a4f8
2010-09-08  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        move-during-parse-parent.html crashes
        https://bugs.webkit.org/show_bug.cgi?id=45210

        When inserting elements into the tree, they need to be associated with
        their parent's document, not the document for which the parser is
        running.  These two are different when the parent has been moved to a
        different document during parsing.

        Test: fast/parser/move-during-parsing.html

        * html/parser/HTMLConstructionSite.cpp:
        (WebCore::HTMLConstructionSite::insertComment):
        (WebCore::HTMLConstructionSite::insertCommentOnHTMLHtmlElement):
        (WebCore::HTMLConstructionSite::insertScriptElement):
        (WebCore::HTMLConstructionSite::insertTextNode):
        (WebCore::HTMLConstructionSite::createElement):
        (WebCore::HTMLConstructionSite::createHTMLElement):
2010-09-08  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        move-during-parse-parent.html crashes
        https://bugs.webkit.org/show_bug.cgi?id=45210

        * fast/parser/move-during-parsing-expected.txt: Added.
        * fast/parser/move-during-parsing.html: Added.
        * fast/parser/resources/move-during-parsing-iframe.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@67030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/parser/move-during-parsing-expected.txt [new file with mode: 0644]
LayoutTests/fast/parser/move-during-parsing.html [new file with mode: 0644]
LayoutTests/fast/parser/resources/move-during-parsing-iframe.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/parser/HTMLConstructionSite.cpp