LayoutTests:
authorantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Jul 2007 18:55:42 +0000 (18:55 +0000)
committerantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Jul 2007 18:55:42 +0000 (18:55 +0000)
commit25e3e5d673c5f6a0f741ff816f9a0310626e58bd
tree2f4c5fa8fbcf21fbb760d136b32e5cb21f4a539c
parent68cc2c7689db0ef5fe26f870354e764661868039
LayoutTests:

        Reviewed by Adele.

        Test for <rdar://problem/5192256>
        click() in onchange handler causes another change event (causes hang at http://forums.whirlpool.net.au/)

        * fast/events/onchange-click-hang-expected.txt: Added.
        * fast/events/onchange-click-hang.html: Added.

WebCore:

        Reviewed by Adele.

        Fix <rdar://problem/5192256>
        click() in onchange handler causes another change event (causes hang at http://forums.whirlpool.net.au/)

        Guard against generating a simulated event from within a simulated event in the same node. Try to
        match Firefox behavior.

        * dom/EventTargetNode.cpp:
        (WebCore::EventTargetNode::dispatchSimulatedMouseEvent):
        (WebCore::EventTargetNode::dispatchSimulatedClick):
        * dom/Node.cpp:
        (WebCore::Node::Node):
        * dom/Node.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24267 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/onchange-click-hang-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/onchange-click-hang.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/EventTargetNode.cpp
WebCore/dom/Node.cpp
WebCore/dom/Node.h