LayoutTests:
Reviewed by Maciej.
- test for
<rdar://problem/
4325160> REGRESSION(416.12-420+): window events not stopped by stopPropagation (affects macnn forums)
* fast/events/window-events-bubble-expected.txt: Added.
* fast/events/window-events-bubble.html: Added.
* fast/events/window-events-bubble2-expected.txt: Added.
* fast/events/window-events-bubble2.html: Added.
* fast/events/window-events-capture-expected.txt: Added.
* fast/events/window-events-capture.html: Added.
WebCore:
Reviewed by Maciej.
- Fixed <rdar://problem/
4325160>
REGRESSION(416.12-420+): window events not stopped by stopPropagation (affects macnn forums)
Tests:
* fast/events/window-events-bubble.html
* fast/events/window-events-bubble2.html
* fast/events/window-events-capture.html
* khtml/xml/DocumentImpl.cpp:
(WebCore::DocumentImpl::handleWindowEvent): Added to send events directly to the window. This code used to be in defaultEventHandler, but that wasn't sending them at the right time.
(WebCore::DocumentImpl::defaultEventHandler): Moved code to send window events to handleWindowEvent.
* khtml/xml/DocumentImpl.h: Added handleWindowEvent.
* khtml/xml/NodeImpl.cpp:
(WebCore::NodeImpl::dispatchGenericEvent): fire window events in capture and bubble phases.
(WebCore::NodeImpl::dispatchWindowEvent): call handleWindowEvent.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12675
268f45cc-cd09-0410-ab3c-
d52691b4dbfc